Message ID | 20230306140543.1813621-2-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1868420wrd; Mon, 6 Mar 2023 06:22:07 -0800 (PST) X-Google-Smtp-Source: AK7set/IfNdxL1pe1zGtWoWpA8U1c6OhCzs0hIVGofKbotN9qHN2Z4kbUu8XDMiOSPneAagE0Zv7 X-Received: by 2002:a17:906:1604:b0:8af:7b80:82ba with SMTP id m4-20020a170906160400b008af7b8082bamr9905435ejd.20.1678112527207; Mon, 06 Mar 2023 06:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678112527; cv=none; d=google.com; s=arc-20160816; b=l9crQw5cfqUyH4uKdJoZBABBYRHZvPtjRuSybQEg+SoMdn5L+yUTAQOnffa7TKxmxk WIdKk8cGwuT/X1mmkYZE/vcIs7yu4ZwZ/WgyztKd92HjOqJOTcTTP1s6ntJ9bw3Fnj4u pSivg1USkjjbJfOI8LKrtG9/vDFqqLo5IGlS+mdVa9pvNAu9UmXj8zY8dz3RBkBaxq16 VykmQ4nLzLq9u4uOROX5ENaw60mefawKepRTch3a5V/EHy21HRGy1/ABIBwGuz3HiIsg yMCWMBwmHTewgzzZs0cQwUR3hAg22jppJoDPb+gvj5ekBVubOkVmViDm2RKWEsWeKqY+ q2Iw== 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=bS+FEG5ZG/WueUou9L9JaQfVBhB/qIW+Nt4vBBYrees=; b=aNq1Xzj8zi94omcGXntm2PhplpbAf82ScZKTM7PqIxpZJH/VcZI7M92pTsxiAMzsM4 wYxxGkLzy0ePK35yHL/SrxGuTZzjitucZ2BFzWzDYkpCdqk+gBuiXUBOu3Juwwsz4rhD mgSkcLpWzpbJ5NhdxCk2C3kv73aD/CLKRDZrZyE5FtZfiCWmrlHCPujtczs7ydo0OMf1 AiVlgS2CJ0yZezHPa69grYKUFI2WZRPev8hXkwwn3NpEfq8f+mKWJE4p/at8z5rs9JB+ Hy3sonuAQPIijiRHn/63aIt0lLF2IacHcU4G5bG3A3OBC9qJlwHqR1uivh+9ijqp6emH zggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Pr2gkVlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr3-20020a1709073f8300b008b17de9d1f6si14459749ejc.16.2023.03.06.06.21.43; Mon, 06 Mar 2023 06:22:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Pr2gkVlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbjCFOGS (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 09:06:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjCFOGQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 09:06:16 -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 D839730B04; Mon, 6 Mar 2023 06:05:51 -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 BC9606602E18; Mon, 6 Mar 2023 14:05:48 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678111550; bh=qfTxwFXUn9HQN99XyeVLlxQ4VDRENP6/4omtVDPugdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pr2gkVlH0mS9pM9Vj4kg9qG05SSrjka+vIYCzYST0PRjnzQjUh/92y/rSiw4Y86Kt 1gAbdOB/a+lvv+vR+earTjYmABcxDyQYxaKy0hyQ7WE7Up9ubMZRCYUKm57LOnpOk5 3DdEDq+HKAajqhSZS2JjfjzqXxT/OhEMzY+niKma/J5oCYc+LtTmCog1P2W4eRXfzv q2ivwDuIb6W5jxy/6Qscimm1NCJx5JumiH+53yqDYdt1wLDB1WMHF0Pi2qCerPmUMW eQqXPzNjqXEm3Pp5BNbSmG7qC4aLB0GWJyc6G07XT5RpMO+WWF7uUBemX/BmF1KloD DTcfzLWcXb9Ew== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 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 v6 01/54] clk: mediatek: clk-mtk: Switch to device_get_match_data() Date: Mon, 6 Mar 2023 15:04:50 +0100 Message-Id: <20230306140543.1813621-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306140543.1813621-1-angelogioacchino.delregno@collabora.com> References: <20230306140543.1813621-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759628520955031311?= X-GMAIL-MSGID: =?utf-8?q?1759628520955031311?= |
Series |
MediaTek clocks: full module build and cleanups
|
|
Commit Message
AngeloGioacchino Del Regno
March 6, 2023, 2:04 p.m. UTC
Instead of using of_device_get_match_data(), switch to the generic device_get_match_data(). Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Tested-by: Miles Chen <miles.chen@mediatek.com> Tested-by: Chen-Yu Tsai <wenst@chromium.org> --- 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 14e8b64a32a3..f0b723372b52 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -12,7 +12,6 @@ #include <linux/module.h> #include <linux/of.h> #include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/slab.h> @@ -471,7 +470,7 @@ int mtk_clk_simple_probe(struct platform_device *pdev) void __iomem *base; int num_clks, r; - mcd = of_device_get_match_data(&pdev->dev); + mcd = device_get_match_data(&pdev->dev); if (!mcd) return -EINVAL; @@ -586,7 +585,7 @@ EXPORT_SYMBOL_GPL(mtk_clk_simple_probe); int mtk_clk_simple_remove(struct platform_device *pdev) { - const struct mtk_clk_desc *mcd = of_device_get_match_data(&pdev->dev); + const struct mtk_clk_desc *mcd = device_get_match_data(&pdev->dev); struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); struct device_node *node = pdev->dev.of_node;