From nobody Thu Nov 14 07:16:31 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0A19C61DA4 for ; Tue, 14 Feb 2023 13:41:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232560AbjBNNlw (ORCPT ); Tue, 14 Feb 2023 08:41:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231920AbjBNNlq (ORCPT ); Tue, 14 Feb 2023 08:41:46 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF0B25E0E; Tue, 14 Feb 2023 05:41:44 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5AB686602169; Tue, 14 Feb 2023 13:41:42 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1676382103; bh=l5BdwmfyxbZlaujYTSJF7PTIlSpQy1drDejxx2IavtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m+OoxLnQJjNDxKPE25JzER7ZuGl0yncdk9mZcPNQRPHsktWq1gIYsCRUz63RO/OcH gp4gXVTvkEt/8HVEmFMB+KBVU2eGW2oTGH6LuZt1+HrYuPmjQL2pRjxy24X6eTL0yV 5NSr1u1BSmfc+lh+v9Mryp83OIT9Avau3+72ncvVI+9itfr4Y9FDeRoLYdRd8FA1Hx 8gMcwp809iUwyE3qp5Mzn/SZREzTcauFGhwFgOXh5/VyzqPvcD4xD99S9H7Oh+PIr0 LcQ17qqaG6GEWSA4VbLwVTODU+apnjGtYfOt0ZHFHMmOp9D4EOuX5AEirXwR1k/ul1 gBiuZDmIN+tww== From: AngeloGioacchino Del Regno To: mturquette@baylibre.com Cc: sboyd@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, chun-jie.chen@mediatek.com, daniel@makrotopia.org, fparent@baylibre.com, msp@baylibre.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, zhaojh329@gmail.com, sam.shih@mediatek.com, edward-jw.yang@mediatek.com, yangyingliang@huawei.com, granquet@baylibre.com, pablo.sun@mediatek.com, sean.wang@mediatek.com, chen.zhong@mediatek.com, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com Subject: [PATCH v2 01/47] clk: mediatek: clk-mtk: Switch to device_get_match_data() Date: Tue, 14 Feb 2023 14:40:41 +0100 Message-Id: <20230214134127.59273-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214134127.59273-1-angelogioacchino.delregno@collabora.com> References: <20230214134127.59273-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Instead of using of_device_get_match_data(), switch to the generic device_get_match_data(). Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- drivers/clk/mediatek/clk-mtk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index c90c0a6b501b..71eb591cd00c 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include =20 @@ -471,7 +470,7 @@ int mtk_clk_simple_probe(struct platform_device *pdev) void __iomem *base; int num_clks, r; =20 - mcd =3D of_device_get_match_data(&pdev->dev); + mcd =3D device_get_match_data(&pdev->dev); if (!mcd) return -EINVAL; =20 @@ -586,7 +585,7 @@ EXPORT_SYMBOL_GPL(mtk_clk_simple_probe); =20 int mtk_clk_simple_remove(struct platform_device *pdev) { - const struct mtk_clk_desc *mcd =3D of_device_get_match_data(&pdev->dev); + const struct mtk_clk_desc *mcd =3D device_get_match_data(&pdev->dev); struct clk_hw_onecell_data *clk_data =3D platform_get_drvdata(pdev); struct device_node *node =3D pdev->dev.of_node; =20 --=20 2.39.1