]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mediatek: Implement mtk_clk_unregister_fixed_clks() API
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Feb 2022 12:40:18 +0000 (20:40 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Feb 2022 20:12:23 +0000 (12:12 -0800)
commit8896d506703a7b0e7029fa8215332504db09e2db
treea7e6ef3e24f8e11ea9824fcf9fd0cfbd0781951e
parentab4d85088370c6b0ac02cb4c3bc9b8536f501e52
clk: mediatek: Implement mtk_clk_unregister_fixed_clks() API

mtk_clk_register_fixed_clks(), as the name suggests, is used to register
a given list of fixed rate clks. However it is lacking a counterpart
unregister API.

Implement said unregister API so that the various clock platform drivers
can utilize it to do proper unregistration, cleanup and removal.

In the header file, the register function's declaration is also
reformatted to fit code style guidelines.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Miles Chen <miles.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220208124034.414635-16-wenst@chromium.org
Reviewed-by: Chun-Jie Chen <chun-jie.chen@mediatek.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mtk.c
drivers/clk/mediatek/clk-mtk.h