Message ID | 20230221115549.360132-11-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 s9csp1820562wrn; Tue, 21 Feb 2023 03:59:33 -0800 (PST) X-Google-Smtp-Source: AK7set/8XhziS+Ue24xYeIXq5lkDjKUlql76zepvYcQ+9plBOHw0XpTyMh7Znq/2iboXQQawHflr X-Received: by 2002:a05:6402:12d9:b0:4ad:71bd:67c9 with SMTP id k25-20020a05640212d900b004ad71bd67c9mr5392371edx.25.1676980773127; Tue, 21 Feb 2023 03:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676980773; cv=none; d=google.com; s=arc-20160816; b=F6hCMOng/pI1UCbVueNY5tAUiHWldc1+hUYPgHQkSb9I34NsF9QF2fxiz/qR4Ijx7X MA5kDTSC3WZxrFw669tXCU+EvPbu81o2fvDvIpYAlXIVuitQnjzqYQj/aFXu+q3MTkTz eC7X/WANB8TCoGKW+LjOYpg0vSyb9t1bukSGz2pSCOivYYP8iHwHr/2dZPVT6J00m7bT 16p9nwSLV2Iv+4NeFyp3NMgGk1r4aHpi77CrFluhLQQnJ4nMwX1X3Idte8B1U12uTKEH Nl7ulV0LTwalcO8IiOU3mzNUH63kZWi1FtH8TkxKFEeo+9Mn66oXvILP2PPtjJ74fiMB LJPQ== 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=FCHbid1ecGDCGEXBltzdI6M1fmgwciOel2p07kKVbRg=; b=hQ8EIDMWlO2EUoJ2E+LaEEh3ivXQLGpMCpFQwvf8tRNW+Z6CV1QzgRQogqLXyswbe/ gH9oAV7cUim/+OtMtLYSv6uENhf0tYs//BzJvH+DlWkupb6yB/m61wmB3GWxHLwFLUWM +3iL8jqxPAJu748/2M5rzN0hZ7W8iUi9PgYM2QBM6s1ZP6Q4QY1VlZeSO04FaApeSBy/ 9HdctGjNXLgAxrJE27m8KfyQgHUCiiaYbpfbMoidchKH99nRTMzgLcPSQIJPVz7EUqhH kdye5L2aElnhEQ/TPSw203FBm5foMBMETX9A3XEhUckPgdt89NeaEMH5PP/QjpJr7XFi WdFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R3tnF3ba; 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 j6-20020aa7c0c6000000b004ad063036fbsi20613086edp.642.2023.02.21.03.59.10; Tue, 21 Feb 2023 03:59:33 -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=R3tnF3ba; 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 S234462AbjBUL4z (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Tue, 21 Feb 2023 06:56:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234431AbjBUL4p (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Feb 2023 06:56:45 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B50B128239; Tue, 21 Feb 2023 03:56:23 -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 BEE7A66021CD; Tue, 21 Feb 2023 11:56:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1676980568; bh=Jd0WSEgoMoiyLJ/JPwWzI6i2w8ARgz466SU1nHCnAdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R3tnF3baCgW4SVj3GBw9hxjAJkiCcbUar2S7vEvGk0FoeK3ktsPG7Bfp3mGqcipvm VJH4tL0CRDid/k/sIAF1/Ob52ZnXNlXYlQjU3UmsNOXj0aSlfoo2oF10eyD4wdvwRV tHF3teRa1L2xj/Agdr/wmN/0aKO41xJM65s5m61sgpdsCeRXDEiUPUsHmfMoFE88oq nzzDw/1Z8D3BdYnN2beVup3Xj06jn0ZDJ2/1ks6h9yuv5MCTa+CFDyOfhekpsvzkva 3LHR7PrFx0UANuIP3vjlyvNxldqOdh/mwR7rC4ZJUO4yvA7EXNJD2EYUBcediLELN3 guD+xrzS10vSg== 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 10/54] clk: mediatek: mt2712: Change to use module_platform_driver macro Date: Tue, 21 Feb 2023 12:55:05 +0100 Message-Id: <20230221115549.360132-11-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?1758441791344489412?= X-GMAIL-MSGID: =?utf-8?q?1758441791344489412?= |
Series |
MediaTek clocks: full module build and cleanups
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 21, 2023, 11:55 a.m. UTC
Now that all of the clocks in clk-mt2712.c are using the common mtk_clk_simple_{probe,remove}() callbacks we can safely migrate to module_platform_driver. While at it, also drop all references to `simple` in the specific context of mt2712 as that was used in the past only to allow us to have two platform_driver(s) in one file. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> --- drivers/clk/mediatek/clk-mt2712.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/drivers/clk/mediatek/clk-mt2712.c b/drivers/clk/mediatek/clk-mt2712.c index c5fd76d1b9df..937c370d6765 100644 --- a/drivers/clk/mediatek/clk-mt2712.c +++ b/drivers/clk/mediatek/clk-mt2712.c @@ -1020,7 +1020,7 @@ static const struct mtk_clk_desc peri_desc = { .rst_desc = &clk_rst_desc[1], }; -static const struct of_device_id of_match_clk_mt2712_simple[] = { +static const struct of_device_id of_match_clk_mt2712[] = { { .compatible = "mediatek,mt2712-infracfg", .data = &infra_desc }, { .compatible = "mediatek,mt2712-mcucfg", .data = &mcu_desc }, { .compatible = "mediatek,mt2712-pericfg", .data = &peri_desc, }, @@ -1028,18 +1028,12 @@ static const struct of_device_id of_match_clk_mt2712_simple[] = { { /* sentinel */ } }; -static struct platform_driver clk_mt2712_simple_drv = { +static struct platform_driver clk_mt2712_drv = { .probe = mtk_clk_simple_probe, .remove = mtk_clk_simple_remove, .driver = { - .name = "clk-mt2712-simple", - .of_match_table = of_match_clk_mt2712_simple, + .name = "clk-mt2712", + .of_match_table = of_match_clk_mt2712, }, }; - -static int __init clk_mt2712_init(void) -{ - return platform_driver_register(&clk_mt2712_simple_drv); -} - -arch_initcall(clk_mt2712_init); +module_platform_driver(clk_mt2712_drv);