Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp631082pxb; Tue, 3 Nov 2020 08:26:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxX6SUyqqbCtyhqCdNf3tZo8n/zHU37TN8KmogjHYLSSUVUBUKFLiFe6C01U50GwSUD0Io7 X-Received: by 2002:aa7:ccc8:: with SMTP id y8mr23080259edt.325.1604420804713; Tue, 03 Nov 2020 08:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420804; cv=none; d=google.com; s=arc-20160816; b=OUrou1WvgKHZxmI3+k0h7E8e1DNhvKMe/WzYEkiIk5wBeAz/p0OfPabd2n3duS3vLd 3jLblO28ZgIEP6yk87vXnm9nRhJ1qW77XjbYvt1Vrl+2b2qK859ZdEb/Ta/o5tVlVrlS M7Hqf7SUcuqGD3QYadTF5fc5BVbn13oiNgrcXZZ2sMipDQIWj+k+Lt/k1/92qmfcS0sC xHCHcbeCvoI4bEk54jUlAyiUvylXIespDjk3MrJ7eujVkwdhLNUXP39QfpWqc7DjvDxT 4DqyGDCKP9/4VdOIibGxeDzju1twR9PxwZhJVOEsWnQxhqM1v9AAevCQkcpmo+IdKhlt 3Ijg== 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=LjFBDXcx68eR2SjoewETakLA7QHOWdQ3WgTe4Z+94p8=; b=rzAeUok31djzyp/SVXlZjK0cGEq+FbU1SeQZ0ijDblC3igURtoOgt7NHrs4xCyVzpf gs151sBBdkhPEMRLwMaziEy3zJytxwEe1i5hoAEurQzAs74hTlqhnmoqJnGsy1wSYd5O of7CSVSZeuNwiGLfSJiUhnPtfvKrN3GX2aw1+DXr1c5qGYdB3bfDa3HjUZsFbFnPZUan fNSrePF5T4ZW9Dn+iIjNdepOm5xCjET8DHcjMMHuD/LrUaC9fa5ekIiA/0eU7kO5Pd5h 0jgmFtYrkaCxfvmVV590PxsTeR0vMTU5J+RzrAl+8IgqqmgZY35au7lfROGsqcSC9Z8v w/DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0R9meRyi; 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 d22si7625085ejr.471.2020.11.03.08.26.21; Tue, 03 Nov 2020 08:26:44 -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=0R9meRyi; 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 S1728371AbgKCQYs (ORCPT + 99 others); Tue, 3 Nov 2020 11:24:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:51398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbgKCQYq (ORCPT ); Tue, 3 Nov 2020 11:24:46 -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 2623522280; Tue, 3 Nov 2020 16:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604420686; bh=2wimUO+VSXbBzfuTHoe58Y6vRB6mfx+eV7EIjA1pLEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0R9meRyiVbPBA93PiTRbY++uIv6dBNIgxhqBpRsVD/ZiULjZI4PAEpWU3QMkOrAtT GcOlz3xqU7BFW4Ji+m/ZAVhG3/N7VZXyVrStYNJbl9Va9qZjskzD5YYV+PcYjDpPaB Xrkhmx4cjWDskBmXNO7EUJoosAWB95UrJsNUnWSA= 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 2/8] clk: imx8mm: drop of_match_ptr from of_device_id table Date: Tue, 3 Nov 2020 17:24:29 +0100 Message-Id: <20201103162435.13689-2-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-imx8mm.c:641:34: warning: ‘imx8mm_clk_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/clk/imx/clk-imx8mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 0de0be0cf548..e27890b61fb6 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -653,7 +653,7 @@ static struct platform_driver imx8mm_clk_driver = { * reloading the driver will crash or break devices. */ .suppress_bind_attrs = true, - .of_match_table = of_match_ptr(imx8mm_clk_of_match), + .of_match_table = imx8mm_clk_of_match, }, }; module_platform_driver(imx8mm_clk_driver); -- 2.25.1