diff options
author | Chen-Yu Tsai <wenst@chromium.org> | 2022-02-08 15:40:09 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-02-17 23:12:22 +0300 |
commit | 89ceb2064ecba333bcf206dc15e4e057d04e132d (patch) | |
tree | c72427cf364998dbb6d81af9a217b7ec2f7b7d91 /drivers/clk/mediatek/clk-cpumux.h | |
parent | 625afe4f05e111b883b95d1b345fd21c94e64cfa (diff) | |
download | linux-89ceb2064ecba333bcf206dc15e4e057d04e132d.tar.xz |
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>
Diffstat (limited to 'drivers/clk/mediatek/clk-cpumux.h')
-rw-r--r-- | drivers/clk/mediatek/clk-cpumux.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/mediatek/clk-cpumux.h b/drivers/clk/mediatek/clk-cpumux.h index 2aaf1afd4e5f..fda7770fd803 100644 --- a/drivers/clk/mediatek/clk-cpumux.h +++ b/drivers/clk/mediatek/clk-cpumux.h @@ -19,4 +19,7 @@ int mtk_clk_register_cpumuxes(struct device_node *node, const struct mtk_composite *clks, int num, struct clk_onecell_data *clk_data); +void mtk_clk_unregister_cpumuxes(const struct mtk_composite *clks, int num, + struct clk_onecell_data *clk_data); + #endif /* __DRV_CLK_CPUMUX_H */ |