clk: mediatek: mt8173: Break down clock drivers and allow module build
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 20 Jan 2023 09:20:40 +0000 (10:20 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 31 Jan 2023 00:45:22 +0000 (16:45 -0800)
commit4c02c9af3cb9449cd176300b288e8addb5083934
tree5f333e7d1b59138c7adb8149aa565aa079a68d36
parenta87d143c47eb0dff5b7f2a97b58e92aa59707a94
clk: mediatek: mt8173: Break down clock drivers and allow module build

Split the giant clock driver for MT8173 into smaller drivers and
make it possible to build the non boot critical clock controller
drivers as modules by adding remove functions and both module
description and license where needed.
While at it, also change a mtk_register_reset_controller() call
to mtk_register_reset_controller_with_dev() in mt8173-infracfg.

Some spare code style cleanups were also performed.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230120092053.182923-11-angelogioacchino.delregno@collabora.com
Tested-by: Mingming Su <mingming.su@mediatek.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/Kconfig
drivers/clk/mediatek/Makefile
drivers/clk/mediatek/clk-mt8173-apmixedsys.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8173-img.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8173-infracfg.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8173-mm.c
drivers/clk/mediatek/clk-mt8173-pericfg.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8173-topckgen.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8173-vdecsys.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8173-vencsys.c [new file with mode: 0644]
drivers/clk/mediatek/clk-mt8173.c [deleted file]