Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp632472pxb; Tue, 3 Nov 2020 08:28:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPSxCz96OaU++sstKXVYitEmrrRtuphlLOg6fALDo1mMfhDyk5Ourd7Mb7T4/NIV1wmt7x X-Received: by 2002:aa7:c889:: with SMTP id p9mr7742441eds.110.1604420932935; Tue, 03 Nov 2020 08:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420932; cv=none; d=google.com; s=arc-20160816; b=dwlvo/7K9Jhayi+uIlyNomltqP+IDtRC9uY9GyB1vcNooDLqg0C//0tsVxy+MPWn47 kJNefiGNp+j44SVqdvhHV8uWJoumeDSgohHfL6iftRcN4hzOIRtQ+93gs1mQ+BCjOW1P ukmbtFu4oqnmsB8+yMXPAqyXMvyjyOTvBzZzh8KLI3L1ZHrtvKTc8Xac8dzaaA/jU6mO G3TJlKvPBCrKtN5yJbAz0MA5zgU28cTRMAy15awBLOzDQtQYyXHwJhhxJcG0/N8x8M/h wr+FDP2vg3kQ9rGvNy6fiof3u1BZ3ekkQuSnUsl01k8EjWMOJA5uwFHJWgSGtMT/jQ2o 8kXA== 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=P8zVj7ZbaSzD4pJh2Xcr1bE8d2jqfRLqChJPNaQMMA4=; b=CU9M/0Dfr2q62RDX/gP8X7TlSiUFuTuOHazg3wxuTYK6SUrDBaN5/EeKcOjjr/6dLW ap/9diCHprCgtfhm04Hq5PJbzHd5HmfnLbzRy812HMRS354Dx9QXwKuO0hkHt0gZXbli nqprJ6GmNSDeYee4ElxmubJfX6Gs3Gfn2+p8ldsrvrG1+s0W1nz39NBWcr7i29QDPAT+ eNzLzv2iTe/WyOvLP2TSF+zAVF7v3URZRzityVfOGlacr3sYKc2PEbQihuwsshfGIXlX 66TxoYf/U0zj/vBXSfsrS7xVvaHIzUWlU+X2PJNzYCVn5Fr/b6lwUVO6mS93tU8r9d6Q JFXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XwM08dkd; 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 f4si4786406edc.234.2020.11.03.08.28.30; Tue, 03 Nov 2020 08:28:52 -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=XwM08dkd; 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 S1728524AbgKCQY4 (ORCPT + 99 others); Tue, 3 Nov 2020 11:24:56 -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 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-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 --- 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); -- 2.25.1