From patchwork Tue Nov 3 16:24:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11878349 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8704192A for ; Tue, 3 Nov 2020 16:25:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 66E1D20773 for ; Tue, 3 Nov 2020 16:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604420722; bh=p6SQM1UMwof5wLchb2Qt88XEkIATt19vgignrCZa8iE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Eg4Twy3+1qgxIuBBj68rieoJk95TYY5M8ghncEDD+zUSQuKguhoOmSKSJxKSSANiL pGtyPDptkvQzpJa3/3cwiGWORQJpBF25E2NQQjXj5L9okHcnC/rQL8IaMpn9gPa5dJ AmE5pEwSa6fmxbfX0+quy2Ztt0OdDuYqh8EAWTlY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728514AbgKCQYz (ORCPT ); Tue, 3 Nov 2020 11:24:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:51508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728405AbgKCQYy (ORCPT ); Tue, 3 Nov 2020 11:24:54 -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 0EB1920773; Tue, 3 Nov 2020 16:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604420693; bh=p6SQM1UMwof5wLchb2Qt88XEkIATt19vgignrCZa8iE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XwM08dkdb9vy7Xg3UBxGclvykQL2LanGM27iv1yZ9ieSskMXjRtFXtPu3Hlk+horX wyf48rJCXIDqoFhgtkLhgfgNJ7QcGWJfWI2Wc1mf5TBQ7Y8WFNgBHBEoSXSxxg3qUC AFESLoIsbNEW5mAvcejSZLUcBwTkX9f7Yw57a1yU= From: Krzysztof Kozlowski To: Michael Turquette , Stephen Boyd , Sudeep Holla , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Geert Uytterhoeven , Peng Fan , Abel Vesa , Anson Huang , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org Cc: Krzysztof Kozlowski , kernel test robot Subject: [PATCH 4/8] clk: imx8mp: drop of_match_ptr from of_device_id table Date: Tue, 3 Nov 2020 17:24:31 +0100 Message-Id: <20201103162435.13689-4-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103162435.13689-1-krzk@kernel.org> References: <20201103162435.13689-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@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 might be not relevant here). This fixes compile warning (!CONFIG_OF && !CONFIG_MODULES): drivers/clk/imx/clk-imx8mp.c:751:34: warning: ‘imx8mp_clk_of_match’ defined but not used [-Wunused-const-variable=] Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski Acked-by: Stephen Boyd --- drivers/clk/imx/clk-imx8mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 12ce4770f702..5295a5156ab0 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -763,7 +763,7 @@ static struct platform_driver imx8mp_clk_driver = { * reloading the driver will crash or break devices. */ .suppress_bind_attrs = true, - .of_match_table = of_match_ptr(imx8mp_clk_of_match), + .of_match_table = imx8mp_clk_of_match, }, }; module_platform_driver(imx8mp_clk_driver);