Message ID | 20230206152928.918562-2-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2298588wrn; Mon, 6 Feb 2023 07:31:28 -0800 (PST) X-Google-Smtp-Source: AK7set/MxrSP6ojPhlCpnU2cCfajO8CMBkodswB54EfnznIuY1JLfLGwHrsdIehEu7oPA3yibB6p X-Received: by 2002:a05:6a00:c91:b0:593:baec:27cc with SMTP id a17-20020a056a000c9100b00593baec27ccmr26003433pfv.3.1675697488059; Mon, 06 Feb 2023 07:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675697488; cv=none; d=google.com; s=arc-20160816; b=YEpM7SM5YQNotzqjHSPNE7WiBDaTzH8hCFaUXMSjXHdXrTNJZSTeb+FvKcAi72hqTD l1kslBq/wRNiiEznplMz2ixUVFCa+C1rlygrAm5ULBC6T6gypMfUi62SizTz2p5nOnv9 Mn9qlERhy3hc9xIedejUIP9L+lFCnoRzkBXdVppJVgRelhvrshEmBZJChNtQ7UW4+lor QtQ+j3XmzUECUzQbm/O6fIplYoZBeC9nD37QrwhAXWvhSjC22lshJ5oWP3S6gh4y0ptk UH/h5XEdz4Q0hYx7nXw+XcE6h1SjDv2RV1i/8phu8JklaouQ+vgY/khBPylcqJ0vgj3K 2d9w== 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=TlzBceyy4+1in/8yS8lkbCv4uBXD+RS6X6w3sT47oIU=; b=ftK1OUTEoWC0QrVFgEhHq5Mc+K9HnvABjblCu6fncbck0SQcuGyTwlCq5uR916sxR6 i2r3wdkmijh8ZW8mqo7bhn4JtjuuPqfvUxEIIM1B7Gx2/SQG02Pjb4qQtS+8uzgPOrVV weYI8KOXiokYh9wEf11xcITmNGJ+rPFKCHx/M6vSfTpRpxywUNEY7MRcp46r5+fkks5O vT32sp4UB2ozkd3NPWP/z0dQn+XNvImmJxWiMA2N034nCP5vbKG9e+YhhmFwZYbeRY9l os3ibUncC6Vou5XwA0wmUYOdBnN5cFd7UTsihR9m+gViIlR8zGLFqOclQOUMQtkKKrb+ CiMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Td5iS2Lr; 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=REJECT sp=REJECT 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 j7-20020aa79287000000b00593b3c92c60si11116064pfa.177.2023.02.06.07.31.14; Mon, 06 Feb 2023 07:31:28 -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=Td5iS2Lr; 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=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230479AbjBFP3y (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Mon, 6 Feb 2023 10:29:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbjBFP3u (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Feb 2023 10:29:50 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67BF2EB58; Mon, 6 Feb 2023 07:29:49 -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 B86726602D99; Mon, 6 Feb 2023 15:29:46 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675697387; bh=swkWEY8kPUmC2zWWUYc4N5J7rDXfV0/+hEu0W+zUe9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Td5iS2LrLOanAw1BlPPt1OtesdypXXanJOJRwYBhYx277kp+m9uyTW+mEfXbCzdYO 5m6rJhtVS+6BU1xNNKRCe5tkrCzayS3ubnKGdtj71DXGrjt4IwjwTIL5sw5XPXjJKs znVCu87+ecRkPIPRtu5wXW2641FfjA/GIZ9dtsYCYo1WkE+A23pWgTm73YDHH19UQv nbU6fRmNN0QljK6l4XaWDu5GK0ePwcyJdP6qcK/0HhrvTlJ428th9AbJNcqtp7kU4V wP7Cg05jTXCC80XyvxK6EKa7WXWW8imBtEWgg4uJJJMbU8QWyWBT+PvRcqqYt/k76m gicXd1HmTeNUQ== 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 Subject: [PATCH v1 01/45] clk: mediatek: clk-mtk: Switch to device_get_match_data() Date: Mon, 6 Feb 2023 16:28:44 +0100 Message-Id: <20230206152928.918562-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230206152928.918562-1-angelogioacchino.delregno@collabora.com> References: <20230206152928.918562-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?1757096169362054070?= X-GMAIL-MSGID: =?utf-8?q?1757096169362054070?= |
Series |
MediaTek clocks: full module build and cleanups
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 6, 2023, 3:28 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>
---
drivers/clk/mediatek/clk-mtk.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Comments
On Mon, Feb 6, 2023 at 11:29 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > 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> though I don't think this does anything for the MediaTek platform lol
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 <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;