Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp631389pxb; Tue, 3 Nov 2020 08:27:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmF+3/pOtHZP8j7Woi5wEIAw3i/QYcWy5nvynpNiU6FbmKcgEBz/ISvEr+mLyugg5aA7PW X-Received: by 2002:a05:6402:48d:: with SMTP id k13mr22725312edv.92.1604420836510; Tue, 03 Nov 2020 08:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420836; cv=none; d=google.com; s=arc-20160816; b=YZPOAVkDMHnuFtGpOvaxVnUxu3VJisQqfggbVYvz+5f3vZtJOY3/xV7VzjMtdwOeJJ TdRrBn9Mt0S3WkZrtelyW0E5UIm4Aj3u7p9ZET3nEE7n4dSOZ5KeaLpZR+iH8PAytGAG bBNxoRu6qHJV1u+LX+1g1jhRpdwHjsXiYu+2r0AXi/LOlercWLqQO4z0ETSymiFm6Bsb scNByDyQDF25vL2cu8l09acO6wySuJDq9PeJa5rXkuO6SUjz7fekgjhFCGgHS3/PPmfY PleKftJ/N9xRhxzRlulNa/LFwCTjtTl5HWhaCFsJGUXx5d1zlrYeXA6nie5vP01IRWRT M/Qw== 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=YRK6nHzvqjw5TWY8Vh8qBn5joKyS0V6s3pUb0AjFwTo=; b=SAewwgFtTLXUk4YG+sQhqz7da8vB6P3uwsf2GXTR2s0Y1TnYSh4L8NHKX3HBI46Ln4 PbG8kIivAytwg4+tM5LhwYM3HIMz2vs2M+NnXMybZ0+N1XFHpRfUgLRt6SROIwpAGEEj IxjHb7Npb3Sox4blsTFhcOHwB7At/+rod/scJxwSmpXQNo7bc9cr9WPaHLTgfaj86SaU 6VqGXUCWba91w0e4iD8axsS/1I77QROPHD4is4lhcruMC4IRoPaP9kY/j9QwOT+IUmyR wtYXCvPbVFpe6mrTGoK8f7RCdjgncnNu1ELvPTz5wg1Xszi7aLHDLdWEHJ6ux3Oc3sXz Pfiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yrMBsSVp; 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 o6si12882896eds.235.2020.11.03.08.26.50; Tue, 03 Nov 2020 08:27:16 -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=yrMBsSVp; 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 S1728548AbgKCQY7 (ORCPT + 99 others); Tue, 3 Nov 2020 11:24:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:51582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728532AbgKCQY5 (ORCPT ); Tue, 3 Nov 2020 11:24:57 -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 AAA09223EA; Tue, 3 Nov 2020 16:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604420696; bh=WSq+jGqn7IIOco4olcXArGnNZtTL3ya7nktnhlMAieY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yrMBsSVpyHPGYp5WdpHIcomDX/1s7Fplmr9Z+EABIl+81/8DnZ8QV3Z45fS6g1+Az 9sSwRq+O1v0J10XthWmjnbMGyMCDdG/t2VgL8VvZp0wrhAx7txHVCLIzd9xBcPENqZ 9/Plw74JvB3w/LtLcedTi2KlfWvUeFTl2ZZ0rDxg= 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 Subject: [PATCH 5/8] clk: imx8mq: drop of_match_ptr from of_device_id table Date: Tue, 3 Nov 2020 17:24:32 +0100 Message-Id: <20201103162435.13689-5-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 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 might be not relevant here). This fixes compile warning (!CONFIG_OF && !CONFIG_MODULES): drivers/clk/imx/clk-imx8mq.c:626:34: warning: ‘imx8mq_clk_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 8265d1d48af4..75186888ecae 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -639,7 +639,7 @@ static struct platform_driver imx8mq_clk_driver = { * reloading the driver will crash or break devices. */ .suppress_bind_attrs = true, - .of_match_table = of_match_ptr(imx8mq_clk_of_match), + .of_match_table = imx8mq_clk_of_match, }, }; module_platform_driver(imx8mq_clk_driver); -- 2.25.1