From patchwork Mon Jan 10 17:09:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miles Chen X-Patchwork-Id: 12708973 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 796E1C433EF for ; Mon, 10 Jan 2022 17:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0LlUq9OXXVcVYLA7jVr3URFkMCY+u5C/112VktSPZbU=; b=xSlsM1Ft5vDqI2 fclKR1zPmnuw92wcUqWbIty/D01pDzJRccY7PpTOaOk9bIK90nnTeu8O/Om24zfj/tUlqWEUv3Wyw a4S9Ij+2t1Oi/bpUhu3iJdnxQdjafRIKYwOMU4ac/YNz+KlFheRE0ViNVA6/tIAwJ9Nf1sPkz0f7q UEBP/I3MDndEHyH3hkBHra6vBXHMIj9Ylw0hkaPr2xxmleMhRq2VTO6ZYk2MwXHrAyZy3AgjKXxf9 fKLLKipXZjE5YTJYty8uNL3YJJ7DR2imZw9XftFOBb20K0xtM+/dycDe/Mcd/b4b9Bzyqf42i3pHW bVzBLHEluEOivdzvqBdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6yBw-00CUeq-Rk; Mon, 10 Jan 2022 17:10:44 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6yBU-00CUTG-DC; Mon, 10 Jan 2022 17:10:20 +0000 X-UUID: 6fc9e37e51164ebcb352688d195fb7e5-20220110 X-UUID: 6fc9e37e51164ebcb352688d195fb7e5-20220110 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1405554686; Mon, 10 Jan 2022 10:10:10 -0700 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Jan 2022 09:10:09 -0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Jan 2022 01:10:07 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 11 Jan 2022 01:10:07 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: Miles Chen , Chun-Jie Chen , Chen-Yu Tsai , , , , Subject: [PATCH 1/3] clk: mediatek: export mtk_clk_simple_probe Date: Tue, 11 Jan 2022 01:09:57 +0800 Message-ID: <20220110171000.24316-2-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220110171000.24316-1-miles.chen@mediatek.com> References: <20220110171000.24316-1-miles.chen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_091016_478559_9C04627B X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Export mtk_clk_simple_probe() to support mt8192 module build. Cc: Chun-Jie Chen Cc: Chen-Yu Tsai Signed-off-by: Miles Chen --- drivers/clk/mediatek/clk-mtk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index 8d5791b3f460..807dea08d7de 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -332,5 +332,6 @@ int mtk_clk_simple_probe(struct platform_device *pdev) mtk_free_clk_data(clk_data); return r; } +EXPORT_SYMBOL_GPL(mtk_clk_simple_probe); MODULE_LICENSE("GPL"); From patchwork Mon Jan 10 17:09:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miles Chen X-Patchwork-Id: 12708972 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7390C43217 for ; Mon, 10 Jan 2022 17:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dGse/8jvPIPAHf+pxdeRLzkJm4k1pCOik4FC+KabETM=; b=jZoH7faXrAurOu BdnyCchhlGzA98y0AeTRTOx5sfEw5obP4owSDBSusY2x4/WWSB/vUGQJmeoOgabN1DDkuFaJt2abN Sz9XjhPZBZjZRne8xtGog7m6fpkkxL568EclrlMIqUPdPMwtRDHXKb6TnP1xyubsiDqBxzJ6bE9jv sgLyld3jQxyUBCO48C0pCrOr9I0dJjssxNqrVtXsht1sgZemzK/S35TRQ5yol3/nD6YA3Os34xgro IkjucvlqG8cd5a115NQWcQ2yjH9EYKUC9/CCnJdqUSfwUT8DJ9iZv9tgRvsPXwA7xZSfpRUorAuDW Fo/z4bbyCDPUN+yHCznw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6yBa-00CUW6-7F; Mon, 10 Jan 2022 17:10:22 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6yBU-00CUTB-9T; Mon, 10 Jan 2022 17:10:19 +0000 X-UUID: cb72deee31f14323998fe0562346d92e-20220110 X-UUID: cb72deee31f14323998fe0562346d92e-20220110 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 153805267; Mon, 10 Jan 2022 10:10:11 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Jan 2022 09:10:09 -0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Tue, 11 Jan 2022 01:10:08 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 11 Jan 2022 01:10:08 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: Miles Chen , Chun-Jie Chen , Chen-Yu Tsai , , , , Subject: [PATCH 2/3] clk: mediatek: clk-mt8192: drop CLK_OF_DECLARE_DRIVER Date: Tue, 11 Jan 2022 01:09:58 +0800 Message-ID: <20220110171000.24316-3-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220110171000.24316-1-miles.chen@mediatek.com> References: <20220110171000.24316-1-miles.chen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_091016_364980_B58A673D X-CRM114-Status: GOOD ( 13.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org clk-mt8192.c uses CLK_OF_DECLARE_DRIVER and it does not work for kernel modules. To support clk-mt8192 moudle build, move the clk_mt8192_top_init_early() logic to clk_mt8192_top_probe() and drop clk_mt8192_top_init_early() and CLK_OF_DECLARE_DRIVER. Cc: Chun-Jie Chen Cc: Chen-Yu Tsai Signed-off-by: Miles Chen --- drivers/clk/mediatek/clk-mt8192.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8192.c b/drivers/clk/mediatek/clk-mt8192.c index cbc7c6dbe0f4..552fae4f0fd5 100644 --- a/drivers/clk/mediatek/clk-mt8192.c +++ b/drivers/clk/mediatek/clk-mt8192.c @@ -1179,31 +1179,20 @@ static const struct mtk_pll_data plls[] = { static struct clk_onecell_data *top_clk_data; -static void clk_mt8192_top_init_early(struct device_node *node) +static int clk_mt8192_top_probe(struct platform_device *pdev) { + struct device_node *node = pdev->dev.of_node; + int r; + void __iomem *base; int i; top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); if (!top_clk_data) - return; + return -ENOMEM; for (i = 0; i < CLK_TOP_NR_CLK; i++) top_clk_data->clks[i] = ERR_PTR(-EPROBE_DEFER); - mtk_clk_register_factors(top_early_divs, ARRAY_SIZE(top_early_divs), top_clk_data); - - of_clk_add_provider(node, of_clk_src_onecell_get, top_clk_data); -} - -CLK_OF_DECLARE_DRIVER(mt8192_topckgen, "mediatek,mt8192-topckgen", - clk_mt8192_top_init_early); - -static int clk_mt8192_top_probe(struct platform_device *pdev) -{ - struct device_node *node = pdev->dev.of_node; - int r; - void __iomem *base; - base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Mon Jan 10 17:09:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miles Chen X-Patchwork-Id: 12708983 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2A5ACC433F5 for ; Mon, 10 Jan 2022 17:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eWHG96WPMfg8PLiz2RbuoAlZSHpheJXqRi2z46X6s/c=; b=vj1DGubL26ywex OI+rc/GwTuMQCkpLzZY73dF8QjOt69lrEKNgozh2KjU52LQJmuJuqxEcLlSpUQ34WoK7TYuv+XQkN 2o47/sNTkZde9We+L9Q7UirGyxkGen+dtW8tPntr8yqNlLpRFZ557FqVDaAyYKbasI8PJ+4ksAs86 Ety4nkmcJDASeej9iGe2UdlgtKGTvrN6xrOUSMSGjKq133mZ/R6A6ERklgRcHUakhc3cj1TQckBF4 PFjH7oEiO0ueZBD4SP515Npqn9XD6G1w9aCOpFLagL1U3tgsUQzeLJZmR+dS4QgIuOltCkBhzS05K Be3j2LXE//x2PEq3beNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6yED-00CVnp-F1; Mon, 10 Jan 2022 17:13:05 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6yE8-00CVlT-23; Mon, 10 Jan 2022 17:13:02 +0000 X-UUID: 404d6300f56b4d2fb32d54f7e5d3874d-20220110 X-UUID: 404d6300f56b4d2fb32d54f7e5d3874d-20220110 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 624391940; Mon, 10 Jan 2022 10:12:56 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Jan 2022 09:10:12 -0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Jan 2022 01:10:11 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 11 Jan 2022 01:10:10 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: Miles Chen , Chun-Jie Chen , Chen-Yu Tsai , , , , Subject: [PATCH 3/3] clk: mediatek: support COMMON_CLK_MT8192 module build Date: Tue, 11 Jan 2022 01:09:59 +0800 Message-ID: <20220110171000.24316-4-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220110171000.24316-1-miles.chen@mediatek.com> References: <20220110171000.24316-1-miles.chen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_091300_159345_9236C592 X-CRM114-Status: GOOD ( 13.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org To support COMMON_CLK_MT8192* module build, add MODULE_LICENSE and include module.h. Cc: Chun-Jie Chen Cc: Chen-Yu Tsai Signed-off-by: Miles Chen --- drivers/clk/mediatek/Kconfig | 26 +++++++++---------- drivers/clk/mediatek/clk-mt8192-aud.c | 4 ++- drivers/clk/mediatek/clk-mt8192-cam.c | 4 ++- drivers/clk/mediatek/clk-mt8192-img.c | 4 ++- .../clk/mediatek/clk-mt8192-imp_iic_wrap.c | 4 ++- drivers/clk/mediatek/clk-mt8192-ipe.c | 4 ++- drivers/clk/mediatek/clk-mt8192-mdp.c | 4 ++- drivers/clk/mediatek/clk-mt8192-mfg.c | 4 ++- drivers/clk/mediatek/clk-mt8192-mm.c | 4 ++- drivers/clk/mediatek/clk-mt8192-msdc.c | 4 ++- drivers/clk/mediatek/clk-mt8192-scp_adsp.c | 4 ++- drivers/clk/mediatek/clk-mt8192-vdec.c | 4 ++- drivers/clk/mediatek/clk-mt8192-venc.c | 4 ++- drivers/clk/mediatek/clk-mt8192.c | 2 ++ 14 files changed, 51 insertions(+), 25 deletions(-) diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig index 3ce6fb04d8ff..b2205caf673f 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -496,7 +496,7 @@ config COMMON_CLK_MT8183_VENCSYS This driver supports MediaTek MT8183 vencsys clocks. config COMMON_CLK_MT8192 - bool "Clock driver for MediaTek MT8192" + tristate "Clock driver for MediaTek MT8192" depends on ARM64 || COMPILE_TEST select COMMON_CLK_MEDIATEK default ARM64 @@ -504,73 +504,73 @@ config COMMON_CLK_MT8192 This driver supports MediaTek MT8192 basic clocks. config COMMON_CLK_MT8192_AUDSYS - bool "Clock driver for MediaTek MT8192 audsys" + tristate "Clock driver for MediaTek MT8192 audsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 audsys clocks. config COMMON_CLK_MT8192_CAMSYS - bool "Clock driver for MediaTek MT8192 camsys" + tristate "Clock driver for MediaTek MT8192 camsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 camsys and camsys_raw clocks. config COMMON_CLK_MT8192_IMGSYS - bool "Clock driver for MediaTek MT8192 imgsys" + tristate "Clock driver for MediaTek MT8192 imgsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 imgsys and imgsys2 clocks. config COMMON_CLK_MT8192_IMP_IIC_WRAP - bool "Clock driver for MediaTek MT8192 imp_iic_wrap" + tristate "Clock driver for MediaTek MT8192 imp_iic_wrap" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 imp_iic_wrap clocks. config COMMON_CLK_MT8192_IPESYS - bool "Clock driver for MediaTek MT8192 ipesys" + tristate "Clock driver for MediaTek MT8192 ipesys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 ipesys clocks. config COMMON_CLK_MT8192_MDPSYS - bool "Clock driver for MediaTek MT8192 mdpsys" + tristate "Clock driver for MediaTek MT8192 mdpsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 mdpsys clocks. config COMMON_CLK_MT8192_MFGCFG - bool "Clock driver for MediaTek MT8192 mfgcfg" + tristate "Clock driver for MediaTek MT8192 mfgcfg" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 mfgcfg clocks. config COMMON_CLK_MT8192_MMSYS - bool "Clock driver for MediaTek MT8192 mmsys" + tristate "Clock driver for MediaTek MT8192 mmsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 mmsys clocks. config COMMON_CLK_MT8192_MSDC - bool "Clock driver for MediaTek MT8192 msdc" + tristate "Clock driver for MediaTek MT8192 msdc" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 msdc and msdc_top clocks. config COMMON_CLK_MT8192_SCP_ADSP - bool "Clock driver for MediaTek MT8192 scp_adsp" + tristate "Clock driver for MediaTek MT8192 scp_adsp" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 scp_adsp clocks. config COMMON_CLK_MT8192_VDECSYS - bool "Clock driver for MediaTek MT8192 vdecsys" + tristate "Clock driver for MediaTek MT8192 vdecsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 vdecsys and vdecsys_soc clocks. config COMMON_CLK_MT8192_VENCSYS - bool "Clock driver for MediaTek MT8192 vencsys" + tristate "Clock driver for MediaTek MT8192 vencsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 vencsys clocks. diff --git a/drivers/clk/mediatek/clk-mt8192-aud.c b/drivers/clk/mediatek/clk-mt8192-aud.c index f28d56628045..ea512fa3d4b9 100644 --- a/drivers/clk/mediatek/clk-mt8192-aud.c +++ b/drivers/clk/mediatek/clk-mt8192-aud.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -115,4 +116,5 @@ static struct platform_driver clk_mt8192_aud_drv = { }, }; -builtin_platform_driver(clk_mt8192_aud_drv); +module_platform_driver(clk_mt8192_aud_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-cam.c b/drivers/clk/mediatek/clk-mt8192-cam.c index fc74cd80b4b0..04a0de364408 100644 --- a/drivers/clk/mediatek/clk-mt8192-cam.c +++ b/drivers/clk/mediatek/clk-mt8192-cam.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -104,4 +105,5 @@ static struct platform_driver clk_mt8192_cam_drv = { }, }; -builtin_platform_driver(clk_mt8192_cam_drv); +module_platform_driver(clk_mt8192_cam_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-img.c b/drivers/clk/mediatek/clk-mt8192-img.c index 7ce3abe42577..54713a5f3dfc 100644 --- a/drivers/clk/mediatek/clk-mt8192-img.c +++ b/drivers/clk/mediatek/clk-mt8192-img.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -67,4 +68,5 @@ static struct platform_driver clk_mt8192_img_drv = { }, }; -builtin_platform_driver(clk_mt8192_img_drv); +module_platform_driver(clk_mt8192_img_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-imp_iic_wrap.c b/drivers/clk/mediatek/clk-mt8192-imp_iic_wrap.c index 700356ac6a58..94fdb3c1a963 100644 --- a/drivers/clk/mediatek/clk-mt8192-imp_iic_wrap.c +++ b/drivers/clk/mediatek/clk-mt8192-imp_iic_wrap.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -116,4 +117,5 @@ static struct platform_driver clk_mt8192_imp_iic_wrap_drv = { }, }; -builtin_platform_driver(clk_mt8192_imp_iic_wrap_drv); +module_platform_driver(clk_mt8192_imp_iic_wrap_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-ipe.c b/drivers/clk/mediatek/clk-mt8192-ipe.c index 730d91b64b3f..7f8a7a60e2bd 100644 --- a/drivers/clk/mediatek/clk-mt8192-ipe.c +++ b/drivers/clk/mediatek/clk-mt8192-ipe.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -54,4 +55,5 @@ static struct platform_driver clk_mt8192_ipe_drv = { }, }; -builtin_platform_driver(clk_mt8192_ipe_drv); +module_platform_driver(clk_mt8192_ipe_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-mdp.c b/drivers/clk/mediatek/clk-mt8192-mdp.c index 93c87ae2f332..9eab7337fabe 100644 --- a/drivers/clk/mediatek/clk-mt8192-mdp.c +++ b/drivers/clk/mediatek/clk-mt8192-mdp.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -79,4 +80,5 @@ static struct platform_driver clk_mt8192_mdp_drv = { }, }; -builtin_platform_driver(clk_mt8192_mdp_drv); +module_platform_driver(clk_mt8192_mdp_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-mfg.c b/drivers/clk/mediatek/clk-mt8192-mfg.c index 3bbc7469f0e4..8b44f0779a8c 100644 --- a/drivers/clk/mediatek/clk-mt8192-mfg.c +++ b/drivers/clk/mediatek/clk-mt8192-mfg.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -47,4 +48,5 @@ static struct platform_driver clk_mt8192_mfg_drv = { }, }; -builtin_platform_driver(clk_mt8192_mfg_drv); +module_platform_driver(clk_mt8192_mfg_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-mm.c b/drivers/clk/mediatek/clk-mt8192-mm.c index 4a0b4c4bc06a..506beb5a410d 100644 --- a/drivers/clk/mediatek/clk-mt8192-mm.c +++ b/drivers/clk/mediatek/clk-mt8192-mm.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include "clk-mtk.h" @@ -105,4 +106,5 @@ static struct platform_driver clk_mt8192_mm_drv = { }, }; -builtin_platform_driver(clk_mt8192_mm_drv); +module_platform_driver(clk_mt8192_mm_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-msdc.c b/drivers/clk/mediatek/clk-mt8192-msdc.c index 87c3b79b79cf..a467885abbf8 100644 --- a/drivers/clk/mediatek/clk-mt8192-msdc.c +++ b/drivers/clk/mediatek/clk-mt8192-msdc.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -82,4 +83,5 @@ static struct platform_driver clk_mt8192_msdc_drv = { }, }; -builtin_platform_driver(clk_mt8192_msdc_drv); +module_platform_driver(clk_mt8192_msdc_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-scp_adsp.c b/drivers/clk/mediatek/clk-mt8192-scp_adsp.c index 58725d79dd13..87fbd0131aed 100644 --- a/drivers/clk/mediatek/clk-mt8192-scp_adsp.c +++ b/drivers/clk/mediatek/clk-mt8192-scp_adsp.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -47,4 +48,5 @@ static struct platform_driver clk_mt8192_scp_adsp_drv = { }, }; -builtin_platform_driver(clk_mt8192_scp_adsp_drv); +module_platform_driver(clk_mt8192_scp_adsp_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-vdec.c b/drivers/clk/mediatek/clk-mt8192-vdec.c index b1d95cfbf22a..4d223ecca2c8 100644 --- a/drivers/clk/mediatek/clk-mt8192-vdec.c +++ b/drivers/clk/mediatek/clk-mt8192-vdec.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -91,4 +92,5 @@ static struct platform_driver clk_mt8192_vdec_drv = { }, }; -builtin_platform_driver(clk_mt8192_vdec_drv); +module_platform_driver(clk_mt8192_vdec_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192-venc.c b/drivers/clk/mediatek/clk-mt8192-venc.c index c0d867bff09e..0e8092802771 100644 --- a/drivers/clk/mediatek/clk-mt8192-venc.c +++ b/drivers/clk/mediatek/clk-mt8192-venc.c @@ -4,6 +4,7 @@ // Author: Chun-Jie Chen #include +#include #include #include @@ -50,4 +51,5 @@ static struct platform_driver clk_mt8192_venc_drv = { }, }; -builtin_platform_driver(clk_mt8192_venc_drv); +module_platform_driver(clk_mt8192_venc_drv); +MODULE_LICENSE("GPL"); diff --git a/drivers/clk/mediatek/clk-mt8192.c b/drivers/clk/mediatek/clk-mt8192.c index 552fae4f0fd5..a221834db347 100644 --- a/drivers/clk/mediatek/clk-mt8192.c +++ b/drivers/clk/mediatek/clk-mt8192.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -1313,3 +1314,4 @@ static int __init clk_mt8192_init(void) } arch_initcall(clk_mt8192_init); +MODULE_LICENSE("GPL");