Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp631153pxb; Tue, 3 Nov 2020 08:26:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe5mGR28h6nfozg7yqAv/OCUSUJkJ8Us2dDcz+d8M9B7H8uAN9XE/asnW8uYbNgcYHUe9i X-Received: by 2002:a17:906:1f08:: with SMTP id w8mr20773442ejj.181.1604420813446; Tue, 03 Nov 2020 08:26:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420813; cv=none; d=google.com; s=arc-20160816; b=jtO8oEh9BV5u7LaGyM04R4zEPHhEc3t8WiyeJABA8E5L89QzE35zabZ3Yi3qOv6DxG YFd/SbYe7JeNmyuXx1E4C9TeZBJ/P+EjW4wa3yPIN0776g4+4fmrwbdYVFEup0kLdxgE u2548W28oI+Y/RtoaXu4Rd7BbssyGZDKZvxIaGEqfnhq2dRKS3UEovS6G5x+xGofbL4T gI7NbFzAgIrsQYm0ceLGhvRHewlLA6euFIHHMPXaUOmlgdb6Tq/cz697dP0H3haGpns/ OFmc2kyXf+8u5yay0cjkmxQ5okBkH0BUNAfIDJJUeG05FksSH0H/5jiDuu5jBHFuVjNs rJwA== 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=ONdJz3WPOpYk4/VqRKiR3ONJmyQSyS9LES7/JgWpVjM=; b=RTaJ0/c3p0od+fY+M+cjLvTUJ0c5C7pyQ9BPs2JOCJWtlUrJoW+MJQqvA93rTJFEys Q4J7nqCOr78bMvQ0qkx1kxJZSMbXRn30Dq4zea41Dqq6pco+pr5GDJTQzhDCFfvlNDIX PzFf/PxTG3MBLL+BOyszWAuiv/xXbdE+20+Goikue8zZTiZ+HTz/+XPBP96gK/ntHx6i IVt3rgbYJV3rfpjXXLB41u+FlWDxZPgeTRuoAMYO9rkOMdJippAGkHJmoEIN5MPfcn2l MRu7iPvolnomUsu6vmlSo/aZPjmAHpfj0VJ+mjP57SG8EZhD3ZUNrMlSAPZz4lQLM8Gk NL8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hUprS4Db; 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 o2si12261119ejn.501.2020.11.03.08.26.30; Tue, 03 Nov 2020 08:26:53 -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=hUprS4Db; 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 S1728437AbgKCQYv (ORCPT + 99 others); Tue, 3 Nov 2020 11:24:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:51444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728405AbgKCQYu (ORCPT ); Tue, 3 Nov 2020 11:24:50 -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 9217E22370; Tue, 3 Nov 2020 16:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604420689; bh=zN+eFM0HVIOS9nyOh7xEE5REPSI59gCe7GIMvHgRwOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hUprS4DbediXpTc3/Gbg6TO+IcEsqfZgdeLGh3mu0u6NdxZ28xyygKDQmY4bfSte9 jEWTXVMjCzZkFZx0k4KK/taadz874ujvpSbKEjvZDc9gwKGxXp1tRiiwlA0z9Cazpc HlmQLiDKcA9xH3qPahQuWS2ssTsmgua0i52M5VIk= 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 3/8] clk: imx8mn: drop of_match_ptr from of_device_id table Date: Tue, 3 Nov 2020 17:24:30 +0100 Message-Id: <20201103162435.13689-3-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-imx8mn.c:592:34: warning: ‘imx8mn_clk_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/clk/imx/clk-imx8mn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index e984de543f0b..18f81419f355 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -604,7 +604,7 @@ static struct platform_driver imx8mn_clk_driver = { * reloading the driver will crash or break devices. */ .suppress_bind_attrs = true, - .of_match_table = of_match_ptr(imx8mn_clk_of_match), + .of_match_table = imx8mn_clk_of_match, }, }; module_platform_driver(imx8mn_clk_driver); -- 2.25.1