From patchwork Wed Feb 22 09:24:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60384 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp472955wrd; Wed, 22 Feb 2023 01:27:29 -0800 (PST) X-Google-Smtp-Source: AK7set8AQ9zFvYn6h6famxNiicL/w9CbFdoarGe54UoRhqUHkm56rvZZXBalAGJtvnyIjL7yNj0f X-Received: by 2002:aa7:99c9:0:b0:5a8:b419:9a51 with SMTP id v9-20020aa799c9000000b005a8b4199a51mr6317040pfi.26.1677058049470; Wed, 22 Feb 2023 01:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677058049; cv=none; d=google.com; s=arc-20160816; b=xXnxZGVZW2tQxGzed85OeIO/3w4P1hhlfwFTokKOGDpFyX5oMyMcRpQch7+yE3RxNs jJ0ZmsgwUGfY/huSt95U5jwN/r/XazkWvVqHCyXy56MaecingzOIcdwz6of/73P3LojI kPlbwXABTfW5+FJbcAXe/UvYvhxw51aLzqMXSTlsWp06SDyR8FLcU2mhisT6v0N/7RLW efIw6WvHN/xVw0K2X5xpEm4VhT831piXJnKQaU/f8jZGd1vOmuRuS8gBFYYijHo+cO7Y n62BArqFWbHz7MXM9K0/gk+YL0mz2UAQV0KUfMcrD4JMTXJRTJGtzcg/2CY/T2uvGmHC SM0A== 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=o2ojdW1A1wQW5Ie41cIN2GTuPT8FZlFFy8chypSVRag=; b=M2k2hYCUHdw0roPWZwbBzRLI71TO4+3yEInCphwUa4GXxC6/uNVYkVQC9b+TwucKkW RtDvG8Ta9eBjAWgcOEbhVNzfrOz4FV2cMKxsKm7XKTj0T6A2caNkS5ePm762PHUHQmvc BJMdjoqfPEPnuTqsyQIK5f/nai/9ymOuwVY7HQ8fEIMHEcFXvBBz8YjWOIgreTwiTOGv w6OMIAJ9I5yOlOrwrEOWnd+yeLvKZsAMMzLoBU/DI0XRXeTWQom0UbV+rDJ28p1AOEuJ T5D5JHunoWHmjeUsnirKSUghXsJpzCizwX6yJ6KReINTgwvcDmIhhleoxZrjHDQOm9st l3Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EtOaR4Rw; 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 z28-20020aa79f9c000000b0059cc9bfde63si20069183pfr.92.2023.02.22.01.27.17; Wed, 22 Feb 2023 01:27:29 -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=EtOaR4Rw; 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 S231698AbjBVJ0L (ORCPT + 99 others); Wed, 22 Feb 2023 04:26:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbjBVJ0C (ORCPT ); Wed, 22 Feb 2023 04:26:02 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 196A027D7C; Wed, 22 Feb 2023 01:25:59 -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 B405066021A4; Wed, 22 Feb 2023 09:25:56 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677057957; bh=KolCBYHgCyOdtgFNEUqWr6WqmKD3lCa2wU6rmzWyOxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EtOaR4RwXbhn6aFpnIGQWxzwQQElcIUgryff1ZUz2OWG72pHpoJOPIKqwp9SYewti DlxRblu6cIYbJhelKD5jqaMdQnNetJ/tDq+jABJA/uKcoaTxLcgKlHAU70sxuP+NUm 9pVvdzc5WmxkILgaWoBQ6RyoVEvikgN5Oe+kSlE1oSUz1gvZXN2W5mUe1iVbJVU7CW dNXkNp2oobhlhq5qCMPrGScI5HvwsDzQfMdYi7hqAej9YEq1RG/cGGYaNaU3YTz8lu 4FR5GBlqO52QmknJ+EWY7QoiJNr2H2UZkh+yGnBZPbUwFmJoeD3tzIfF9bcSe8Mjvs vCxbqXvO97vXg== 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 Subject: [PATCH v5 01/54] clk: mediatek: clk-mtk: Switch to device_get_match_data() Date: Wed, 22 Feb 2023 10:24:50 +0100 Message-Id: <20230222092543.19187-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230222092543.19187-1-angelogioacchino.delregno@collabora.com> References: <20230222092543.19187-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758522820980755141?= X-GMAIL-MSGID: =?utf-8?q?1758522820980755141?= 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 Tested-by: Miles Chen --- 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 #include #include -#include #include #include @@ -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;