Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392554pxb; Fri, 20 Nov 2020 08:24:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6ZRNkce58bqs+y3f+u7bbqZkSMM1JKQlx+qR/KYHXmvguLHhzcJLpLnq6CCwJHqOJcaTU X-Received: by 2002:a05:6402:1844:: with SMTP id v4mr35213683edy.346.1605889475004; Fri, 20 Nov 2020 08:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889474; cv=none; d=google.com; s=arc-20160816; b=bG5pomOqjJoU3ZVlqpXNSHCe85eHayl+nVUpR4oLZa1+DxA5j9re6FuOXS+cFVjFqA 0QgAp1sHhv5NMsF+87j1zwbhhgZYjtrAIO8wkWgh2gLyKNJuXCh2IZM/AlsspdB9f41q zwH3gBQCFwjo/Qrv96vlrE+C+Ecdf04ZIn4h3hxRwerSY4/97EAGVFMwU3rmG+A4tT7v FggzGHx3nHM/PonYTFzIf0wDgDg8PxZ3TpkBl/TBsNcx3kwpmeuZ9HA04un6v1J2vAu7 DCQxAxwiS2GMUCGFWWwF3qL0/NagYWWjPAwzw969t0v3IiXbQXz7faiPNXDlGFrhbrS8 6T2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mnmLRpStcf30m2X2TJQ3PuziX/mxYQ7+3KW+DuLe704=; b=NnRCQIEF/WiawOSP6CsGkvHVtpBIt2D+1r/mYDyK0OPUUp+lPqhHsRSbh+tbRQrZLS 5MVmEyB82N96RSZl/GMzjckNyCgVD78I085af0OIFeUwgoblkfqcSIqEOfrchG4cBP+X 2kzYZKz+RxuDMKe5SW4lv57TQCrzd2w64ZcvDRC+SOrZgtMZfCbeilqbB32KeQRbIAU0 qr1qYL1pKlH4LWmDwN7snY5c30sfqbK4nNVSNIR5t9Mr2aTXOJJPgaQlTSyorMBI2quh VC8AuoVGICQX1SWdPK+WXouNyRHWH1kz9ohgFcREmRfMGwGAqWzU+gayUDldXRUL2kPl C+xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PjtcXXBj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si2266999edi.448.2020.11.20.08.24.11; Fri, 20 Nov 2020 08:24:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PjtcXXBj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729841AbgKTQWM (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:40142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729805AbgKTQWJ (ORCPT ); Fri, 20 Nov 2020 11:22:09 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 83D5422470; Fri, 20 Nov 2020 16:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889329; bh=Oux3w4phNArvsEGZkj50lir+cGOmXDXFa+FOX2iT/rE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PjtcXXBjPG/o0wBc6Dea04Tz18qniZBQt2ntWtoeBSfVnPv6w+eF/6GRUtr3NIbRa 6k7rEOPTTLOv4kl9vs37mMudgGSrb6oRV/m08WcSNa2sNz6pBpqmZadGPBrw2DBYLH 2+gEbd6qPdGHOOHijYx5XXIP1B9gZC+AqImzcSkY= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski Subject: [PATCH 11/16] mfd: rt5033: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:28 +0100 Message-Id: <20201120162133.472938-11-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162133.472938-1-krzk@kernel.org> References: <20201120162133.472938-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). This fixes compile warning (!CONFIG_OF on x86_64): drivers/mfd/rt5033.c:116:34: warning: ‘rt5033_dt_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/rt5033.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rt5033.c b/drivers/mfd/rt5033.c index 48381d9bf740..f1236a9acf30 100644 --- a/drivers/mfd/rt5033.c +++ b/drivers/mfd/rt5033.c @@ -122,7 +122,7 @@ MODULE_DEVICE_TABLE(of, rt5033_dt_match); static struct i2c_driver rt5033_driver = { .driver = { .name = "rt5033", - .of_match_table = of_match_ptr(rt5033_dt_match), + .of_match_table = rt5033_dt_match, }, .probe = rt5033_i2c_probe, .id_table = rt5033_i2c_id, -- 2.25.1