Skip to content

Commit 1096645

Browse files
AngeloGioacchino Del Regnobebarino
authored andcommitted
clk: mediatek: mt8135: Convert to simple probe and enable module build
Convert the MT8135 clock drivers to platform_driver using the common simple probe mechanism; special note goes to the introduction of dummy clocks with ID 0 (where 0 is the first entry of a clock array) for each clock controller: this was necessary because of a mistake in the bindings for all MT8135 clock controllers, where the first clock has ID 1 (hence, array would start from element 1) instead of zero. Now that all of the MT8135 clock drivers (including apmixedsys) can be compiled as modules, change the COMMON_CLK_MT8135 configuration option to tristate to enable module build. While at it, also remove the __initconst annotation from all of the clock arrays as they are not only used during init anymore, but also during runtime. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20230306140543.1813621-55-angelogioacchino.delregno@collabora.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 139e621 commit 1096645

2 files changed

Lines changed: 76 additions & 102 deletions

File tree

drivers/clk/mediatek/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ config COMMON_CLK_MT7986_ETHSYS
423423
required on MediaTek MT7986 SoC.
424424

425425
config COMMON_CLK_MT8135
426-
bool "Clock driver for MediaTek MT8135"
426+
tristate "Clock driver for MediaTek MT8135"
427427
depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
428428
select COMMON_CLK_MEDIATEK
429429
default ARCH_MEDIATEK && ARM

0 commit comments

Comments
 (0)