From patchwork Fri Nov 20 16:23:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921305 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57FFEC56201 for ; Fri, 20 Nov 2020 16:24:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E35DE223FD for ; Fri, 20 Nov 2020 16:24:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="yYQpWFB+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="2oFen2HU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E35DE223FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Y97hDheiAPxtIHwB/fNEnKv2xkHgmTCU0JzyRrhqMgc=; b=yYQpWFB+bxIt8Ivt4SxwezOT5 hf3eMVm61dAz6bAB+2jzLYzzPy2t1uWX806uiV0zx8WRxEoyDdtpaV0NjFkTjyejqQ4HZGI/UL6wA jRJqzTM7r3evYFyQaA89wWiJ1apKGUf3eIgmBfRXfoXTnSyf5wIQsRLCp4aA61R5a1Ph0zgCj/aMe bEc8TD8WRXVTjaMjrEenY7rJVIwsbgld1z8CdRFpL50I+zW4VXN7Gm2t5SUdtYa4ZmZSLeAXz+z2s KF75vmy19i3eXw1YMtFHleBbdp8BXvu8GulUWN7bi/NLJm1XlwnHeEH2TPXbp6A0/pEowjfwHy3Yf Ny8wfoJlA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg9Cd-0000fU-FH; Fri, 20 Nov 2020 16:24:03 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg9CT-0000c1-TF for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 16:23:54 +0000 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 5DC882245F; Fri, 20 Nov 2020 16:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889433; bh=GJfKj0+znNqvKhf1I7W33R1RdCE9XjaBwdh/slqRzUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2oFen2HULEQMcQhwW6Rn2nvYN0TOq1V+4mSVP47yjglwV2jTjWAKVmsjJqstnvdUu 96RR3jDpHNMoTPvOzxutW/1cbY59Cb1XhM+c4U/rZpC0uPaDFs+T2VpMjv8WX0R6W3 kMx8wv7KdQE0Nr364l8wZ939p6AUVpW3otCTyiAc= From: Krzysztof Kozlowski To: Adrian Hunter , Ulf Hansson , Orson Zhai , Baolin Wang , Chunyan Zhang , Patrice Chotard , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] mmc: sdhci-st: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:23:44 +0100 Message-Id: <20201120162344.485921-2-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162344.485921-1-krzk@kernel.org> References: <20201120162344.485921-1-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_112354_069109_F29D8FA3 X-CRM114-Status: GOOD ( 18.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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/mmc/host/sdhci-st.c:512:34: warning: ‘st_sdhci_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/sdhci-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-st.c b/drivers/mmc/host/sdhci-st.c index 4e9ff3e828ba..962872aec164 100644 --- a/drivers/mmc/host/sdhci-st.c +++ b/drivers/mmc/host/sdhci-st.c @@ -523,7 +523,7 @@ static struct platform_driver sdhci_st_driver = { .name = "sdhci-st", .probe_type = PROBE_PREFER_ASYNCHRONOUS, .pm = &sdhci_st_pmops, - .of_match_table = of_match_ptr(st_sdhci_match), + .of_match_table = st_sdhci_match, }, };