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

In preparation for migrating mt8516 clocks to the common simple
probe mechanism, convert the apmixedsys to be a separated
platform driver and move it to clk-mt8516-apmixedsys.c.
While at it, also fix some indentation issues.

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