clk: mediatek: mt2712: Migrate topckgen/mcucfg to mtk_clk_simple_probe()
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 6 Mar 2023 14:04:54 +0000 (15:04 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 13 Mar 2023 18:50:13 +0000 (11:50 -0700)
commit67798a5bf22d5164b4ae767cc488e1eb83274320
treebea9f53540c98fd89aa4757bf3aa7684ff7e2ff8
parent1fe074b1f112dc873281ad8de2b2ce57a0c123ad
clk: mediatek: mt2712: Migrate topckgen/mcucfg to mtk_clk_simple_probe()

Now that the common mtk_clk_simple_{probe,remove}() functions can deal
with divider clocks it is possible to migrate more clock drivers to it:
in this case, it's about topckgen.
While at it, also perform a fast migration for mcucfg.

Thanks to the conversion, more error handling was added to the clocks
registration.

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-6-angelogioacchino.delregno@collabora.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mt2712.c