clk: mediatek: mt8365: Move apmixedsys clock driver to its own file
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 6 Mar 2023 14:05:00 +0000 (15:05 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 13 Mar 2023 18:50:14 +0000 (11:50 -0700)
commitab44c1a70e79d37b243ba1a202d9596a7a137b9b
treeb7800cce90c923803bc99e541d3d8e11d34c62dc
parent274bc8561a314e881507d8d99fe477b436f1f084
clk: mediatek: mt8365: Move apmixedsys clock driver to its own file

In preparation for migrating all other mt8365 clocks to the common
mtk_clk_simple_probe(), move apmixedsys clocks to a different file.
While at it, use the builtin_platform_driver() macro for it.

During the conversion, error handling was added to the apmixedsys
probe function.

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-12-angelogioacchino.delregno@collabora.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/Makefile
drivers/clk/mediatek/clk-mt8365-apmixedsys.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8365.c