clk: mediatek: pll: Implement unregister API
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Feb 2022 12:40:16 +0000 (20:40 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Feb 2022 20:12:23 +0000 (12:12 -0800)
commit6dd199064dd86127030b5bc59d4058370b6c8310
treeb33197f3d739d0ff1d350899977a15c5953702c7
parent39691fb67b6a4f09f839650b09f3eb33fd7d4d91
clk: mediatek: pll: Implement unregister API

The PLL 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 PLL 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-14-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-pll.c
drivers/clk/mediatek/clk-pll.h