Message ID | 20230221115549.360132-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 s9csp1820623wrn; Tue, 21 Feb 2023 03:59:43 -0800 (PST) X-Google-Smtp-Source: AK7set9A0GeHTTN3EMwh6eYFsKgu5qxrMCU8SNB2dgZJU4Sb5771ITZ3yg2fi4+QBYMQ2E2ABOn5 X-Received: by 2002:aa7:d059:0:b0:4ae:eae1:21f8 with SMTP id n25-20020aa7d059000000b004aeeae121f8mr5362988edo.29.1676980783132; Tue, 21 Feb 2023 03:59:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676980783; cv=none; d=google.com; s=arc-20160816; b=iTiKbGJm5cVGFA+ajib/MVFFOHYsBuIGmi+56/nLInIgmkkqLNKQDE5sy942ltgDmO bPn06MepX3gbv8J1p4V8GGQha8C9m/Yq8gWaVKv5iwMfy/NYrV7YG31Swoo8CNGN+6GU 6a+AQ7xe/LpSFYjO3AMQ/CvTA4X+GG6SEor4CJ/Dp/+75nS+ai/HfegVZwJSO+ge5pcx LvAMAskAEEZyHDgweAJ5Y0l7PEbRqtYOlY1E0/vQKYGqwlkTrnVTiV6fA4OdS1FGiP2B w9tirg8cD48zuS0P2TQED/0bC83OPuWut/SZdjG7cSILinAxXcbE48oSqhXJpK2i0mLz KaRQ== 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=xSgm2rjXOSjhBTh9up8NZTqGe5K2UQIvaV5XtHhH+ls=; b=b0jLDgG2/HJtw0BurEqkQVlspJ8bg7/7vKUM2Axl6dhR/72qBFG0yVNKZQdIIQ+vAB WrDCFF3o8W1UwIpz+QcTXwfTeVhRcuDo1ax5RAtWozPns8ZA3R1aP2NRYPPE8hIxP6VT iixBJAMtDwirDT0ZEvZ540/tclLK7rq8sSNML5QCXE3QiqQIVgOy+vcQUzkAU31WXAJS O0QLuahGSwkv6hKivP21SgFoCIfkg0/xRFzN+FbZzpzS2DHrM3fsR0M+Z9g7dVt+jBqy GcY9yINgHNOoDHBx72FW8ubW+ux1njEIxQrs8wC3iU4RWX3X75nkTDKSZJRkbF/559lv l+Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HJSN8vxp; 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 f13-20020a056402068d00b004ad03d31db6si6904565edy.278.2023.02.21.03.59.20; Tue, 21 Feb 2023 03:59:43 -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=HJSN8vxp; 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 S234423AbjBUL4Z (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Tue, 21 Feb 2023 06:56:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbjBUL4T (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Feb 2023 06:56:19 -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 657A128218; Tue, 21 Feb 2023 03:55:58 -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 DAD1D66021A0; Tue, 21 Feb 2023 11:55:55 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1676980557; bh=iw4WNNKWs885EsBbMnP2ZlAwHRKizAFGXd0rF66Q/Vw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HJSN8vxpBY+cIruJpP8MKq0MAt6FVQXnnQMQmURGYHp304LDgvM8FvnOihKKmXBCB NGXfrte5XTg4Gq/od31/SxONGGFDEPDQDgT63rCYKIYeqG/VYcdH08ZDQJ4qXWOoG9 duXo0xfX8WBll6fp76Hag0CQ2uezQSJggXqDW0G/Yke33YgKhD10vuk1qe3ohmUI+Q lL3sRKUNULgcMbNyFh4u9w2lNb8IVYTewUbHdULQYALN6owHix+h6FQRBog/DMC+o0 tpZ4H61MeQHD4OT49/Pyky0DPLftCJwZwWwPerkYQ822pFXPb9WMdNkHTzvTBF1pMl QPLks1JRrOCoA== 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 v4 01/54] clk: mediatek: clk-mtk: Switch to device_get_match_data() Date: Tue, 21 Feb 2023 12:54:56 +0100 Message-Id: <20230221115549.360132-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221115549.360132-1-angelogioacchino.delregno@collabora.com> References: <20230221115549.360132-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?1758441801710710818?= X-GMAIL-MSGID: =?utf-8?q?1758441801710710818?= |
Series |
MediaTek clocks: full module build and cleanups
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 21, 2023, 11:54 a.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> --- 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;