From patchwork Fri Nov 20 16:21:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921295 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 EFFFEC56201 for ; Fri, 20 Nov 2020 16:22:39 +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 77FBC223BE for ; Fri, 20 Nov 2020 16:22:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MoEwokB7"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="FpnPh8Gc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 77FBC223BE 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=CnUkFtYmMndwZ4R6y1uUkooS2Z+fVSmukcmgoIn+Yck=; b=MoEwokB76i6MNtZpSozk+j8nc vw5aEtLtaCR/UPgPR/RLain1Ts7tLsaS1pvfUsFJC8xs+U9cZ8XzHn3yixmGPHiOu52VgNLnjYUFU 0R5XzK63fhEtwVuV3iId1Dj6UCvIZlg/2cTj+BTRLLM3Av0khdAToFk+EXbdxXLrHXY73w6eDfwPa jSpgawWiPX85Pg41ojtQ5nPcHIj3+qatdeZLq/WXVJh9Vz8wcV0Z2laMxAYSrO4yTgPi2dg6WWKQk /pogj3wH/f5uBEPvGansVQyw+jJHmaNgziwQ2OglQIOBtUDIckk8Vvgi3pV2h7UqIF8z9VoGVVxd7 RpBVq+njA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg9Ak-0008Db-CF; Fri, 20 Nov 2020 16:22:06 +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 1kg9Ah-0008CZ-8j for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 16:22:04 +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 846C9223BE; Fri, 20 Nov 2020 16:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889322; bh=BHllnI+0v2HI0B7TLmesbiXjOywu6r/Z9IUQpQJMATU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FpnPh8GcZZUlkdKeBDgvFO30GwAUkj1ECxkpT7xkjt1Wrx3RJ6Muj2127fwDqdgAI wgdYga1hIiJkvFDrD76cHmGzbnAq1gmzaU3FwxQxIqyfDGP8leXlsV7gIR3mxusByN ajewyrt+eQe28Y3MwTBN/9Ho50VtywfShZOpVsIE= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Subject: [PATCH 07/16] mfd: fsl-imx25: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:24 +0100 Message-Id: <20201120162133.472938-7-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_112203_417314_601DFE74 X-CRM114-Status: GOOD ( 17.69 ) 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: Shawn Guo , Sascha Hauer , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org 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/mfd/fsl-imx25-tsadc.c:190:34: warning: ‘mx25_tsadc_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/fsl-imx25-tsadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c index a016b39fe9b0..5f6f0a83e1c5 100644 --- a/drivers/mfd/fsl-imx25-tsadc.c +++ b/drivers/mfd/fsl-imx25-tsadc.c @@ -196,7 +196,7 @@ MODULE_DEVICE_TABLE(of, mx25_tsadc_ids); static struct platform_driver mx25_tsadc_driver = { .driver = { .name = "mx25-tsadc", - .of_match_table = of_match_ptr(mx25_tsadc_ids), + .of_match_table = mx25_tsadc_ids, }, .probe = mx25_tsadc_probe, .remove = mx25_tsadc_remove, From patchwork Fri Nov 20 16:21:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921293 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 9A781C2D0E4 for ; Fri, 20 Nov 2020 16:22:39 +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 2A9C422269 for ; Fri, 20 Nov 2020 16:22:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ShgTpLVQ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="cViIjeTF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A9C422269 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=Z9VIN6yeZidej8U7qM/E2Rie1UBgG8kfZRBPuxEfs1c=; b=ShgTpLVQ64q/qgNHvbeaLk11x ynCIMQmad6ImcBJjHQ7amUvLgjKol5g15Lq4s5tbtf3BXtQ1EUEuQaXhwLd8fZe8N0BwLrSqR5pWO wlDpAGp7tHhxY7FzYeNx7Z9Snv/A/OcSe2hsY8flwLWkgY2DjHajkOtArn7Tx3XcOxf3Z29KmutIL jGwbwz9GldYw+zIjLx5yr+BZtB+cW2mm54QK4cHwMFd6XM+G8jrbhYskUA/I55QvjSFPA62kgd6OB a4/hOktwfjpCK3thOuiNjte7GabMHSKQyZkFbGIMeqsleG1WGN2+XcD0k+VbH7pmB/faVNZ3paeku VzNGTqlEQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg9Aq-0008F5-Ai; Fri, 20 Nov 2020 16:22:12 +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 1kg9Am-0008E9-EE; Fri, 20 Nov 2020 16:22:09 +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 942EF223BE; Fri, 20 Nov 2020 16:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889327; bh=6qUhf2df6YHu083uuIrpaf14GKeZQqyELwqjl3Hr81k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cViIjeTFMJYkCOMT/xAcPv2RziinrswH6Rhfugqj0huDiZaU3Fz49Xds9xB19xHIK fNbEeufSRsMSzs3L2IMCj5Fb6znhuRn0n/xNTSAOnXAKHtTiKg7CBqTLaN1mEcZBvS B0gde80tQCWJMmAbtXzOR6RTV7vYNRSZ6F4/S7Zc= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Subject: [PATCH 10/16] mfd: mt6397: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:27 +0100 Message-Id: <20201120162133.472938-10-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_112208_627295_2D6B7441 X-CRM114-Status: GOOD ( 17.50 ) 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: Matthias Brugger , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, 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/mfd/mt6397-core.c:214:34: warning: ‘mt6397_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/mt6397-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index f6cd8a660602..7518d74c3b4c 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -237,7 +237,7 @@ static struct platform_driver mt6397_driver = { .probe = mt6397_probe, .driver = { .name = "mt6397", - .of_match_table = of_match_ptr(mt6397_of_match), + .of_match_table = mt6397_of_match, }, .id_table = mt6397_id, }; From patchwork Fri Nov 20 16:21:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921297 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 82A9DC2D0E4 for ; Fri, 20 Nov 2020 16:22:53 +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 0CF9B22269 for ; Fri, 20 Nov 2020 16:22:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fDIGdo3+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="txLefZFl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0CF9B22269 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=NeUh7tgRZPO9oLV8IC3VHm7JcBYqoCfpR54KtGkFmuA=; b=fDIGdo3+8fSoD565x2Ll5BXlZ 2PTFNZuq3zeJeOGTLKCOWuhVESoYk470VVxQLAnJ4obWo8z8+MAk/eBB4KqOBLPKPWug6fV1HHN18 cFr/sSqhc4HORYjpJ6nR8JJGfpjPEPtv2VfWCP3Xa+E80QszbgvWRt4M20+elgPFdt+eAeWoxvU1Z 5tkLwtSvo79BfgH7/zTybwxVMT7gHqGBXu4XWY4NyTKpf0JsXHsHyCsw7hnbLUZV7u4VxWfYoGcWb rDYkLh5cTbKaKxSEEdPJ8hKqfUGodYXm/ezuALA+pg3l/yCQ67eG171up/RgeO/XMJ/9WURfq/jDS 5HPH7w6tA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg9Ax-0008HM-OW; Fri, 20 Nov 2020 16:22:19 +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 1kg9Aq-0008F4-EP for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 16:22:13 +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 3B5FC223BE; Fri, 20 Nov 2020 16:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889331; bh=ff2/0GFZmOkfOpWgo2XaheET+oxDW24eQaCng8TEeRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=txLefZFl+Pa19Ah6jARwsNIaAl85zEF8BVTjtIs8gGtaVceu098dLwQAJOKzm6EyP DfzYFWOyq1csi11jp2QG10FCsyS7Eq/xfAIK0Jww7vkS+bGf2VlQTx7At6DPFkhijo 3hjIXMTXdbwjCFa1X3G7ApbZ87Glx5O8Ls3UaM00= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Subject: [PATCH 12/16] mfd: stmfx: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:29 +0100 Message-Id: <20201120162133.472938-12-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_112212_647732_656CB6ED X-CRM114-Status: GOOD ( 17.13 ) 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: linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , Krzysztof Kozlowski , Alexandre Torgue 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/mfd/stmfx.c:542:34: warning: ‘stmfx_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/stmfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stmfx.c b/drivers/mfd/stmfx.c index 5e680bfdf5c9..38303b534172 100644 --- a/drivers/mfd/stmfx.c +++ b/drivers/mfd/stmfx.c @@ -548,7 +548,7 @@ MODULE_DEVICE_TABLE(of, stmfx_of_match); static struct i2c_driver stmfx_driver = { .driver = { .name = "stmfx-core", - .of_match_table = of_match_ptr(stmfx_of_match), + .of_match_table = stmfx_of_match, .pm = &stmfx_dev_pm_ops, }, .probe = stmfx_probe, From patchwork Fri Nov 20 16:21:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921299 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 B4083C63777 for ; Fri, 20 Nov 2020 16:23:43 +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 4C59324073 for ; Fri, 20 Nov 2020 16:23:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AvbbzASR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="m8rR8EP1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C59324073 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=qmSwLsydUHhPkE/bJn+CWGk6XR+mGUKG897trYc8B7c=; b=AvbbzASRcXWa5t8vzut8xTC5c g9uJtiPAVHpcdALJLmi8ZHqDfU2lSZDzhQCj8bS9VvA2SWb/KgjF3xVmz0FmFZSPQwLFPSoXD2VdH L1X/O8K0Wkm5l5mo5AqMIT3o3YC3SpgPR4IdJCaeaTWzy/VF+zG8zn9tmP0wK13pMRnbk1jZmZA/V dX4v06tksjRpI7BTTXD2W6cafeFuMPqzIakfXY5wsY4PM9lS86rX/xlCvPtk9mDvcFxxNmt/kdHw6 XNUQXYP+Q/atbjH0rBDIMDXu60Znngm8afgaLCS1MSraWkDXiuYwkwtX7XcMIQ7NsmLVLZCzdVvvS vEsbVFQqA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg9B5-0008JW-Kc; Fri, 20 Nov 2020 16:22:27 +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 1kg9As-0008Fk-Oe for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 16:22:16 +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 71EB422269; Fri, 20 Nov 2020 16:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889333; bh=VuTIxqGQo/EEJgNF9vyLOTgI2ZYJAhjcd4bxSRSfJ0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m8rR8EP1giu0rgr9xA4F5eQHNXFj0746rqVonsfatGAuOSGDG9Fb/8uVQLPmjtj1g COApqvfm191eZ6UDyIF7OGbAOUml4XNDDB3DFt7TAzUYMCJIPhpQSJLnf+ZjN7kPPg YeT4i242sHORazDelHWbWAVDFSacfLL1ROBRFzW0= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Subject: [PATCH 13/16] mfd: sun4i: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:30 +0100 Message-Id: <20201120162133.472938-13-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_112214_951421_C288415A X-CRM114-Status: GOOD ( 17.96 ) 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: linux-arm-kernel@lists.infradead.org, Jernej Skrabec , Chen-Yu Tsai , Maxime Ripard , 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/mfd/sun4i-gpadc.c:79:34: warning: ‘sun4i_gpadc_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sun4i-gpadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/sun4i-gpadc.c b/drivers/mfd/sun4i-gpadc.c index b346fbce3c01..10d4172ae74c 100644 --- a/drivers/mfd/sun4i-gpadc.c +++ b/drivers/mfd/sun4i-gpadc.c @@ -166,7 +166,7 @@ static int sun4i_gpadc_probe(struct platform_device *pdev) static struct platform_driver sun4i_gpadc_driver = { .driver = { .name = "sun4i-gpadc", - .of_match_table = of_match_ptr(sun4i_gpadc_of_match), + .of_match_table = sun4i_gpadc_of_match, }, .probe = sun4i_gpadc_probe, };