]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mediatek: cpumux: Implement unregister API
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Feb 2022 12:40:09 +0000 (20:40 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Feb 2022 20:12:22 +0000 (12:12 -0800)
commit702a40c6cb39c4e43c524ab4c4714b63d0d46e8f
treec72427cf364998dbb6d81af9a217b7ec2f7b7d91
parent46e9f8d68825dc17d73687d73582eff599fae7a4
clk: mediatek: cpumux: Implement unregister API

The cpumux clk type within the MediaTek clk driver library only has
a register function, and no corresponding unregister function. This
means there is no way for its users to properly implement cleanup
and removal.

Add a matching unregister function for the cpumux type clk.

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-7-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-cpumux.c
drivers/clk/mediatek/clk-cpumux.h