diff options
author | Chen-Yu Tsai <wenst@chromium.org> | 2022-02-08 13:40:31 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-02-17 21:12:25 +0100 |
commit | cd3a77a085f5449696aed6f8f350241d4be509e8 (patch) | |
tree | 6cb93e7b0162a09b9a840e137918a8cde1f50e2b /drivers/clk/mediatek/clk-mt8195-mfg.c | |
parent | clk: mediatek: Unregister clks in mtk_clk_simple_probe() error path (diff) | |
download | linux-cd3a77a085f5449696aed6f8f350241d4be509e8.tar.xz linux-cd3a77a085f5449696aed6f8f350241d4be509e8.zip |
clk: mediatek: mt8195: Hook up mtk_clk_simple_remove()
Various small clock controllers only have clock gates, and utilize
mtk_clk_simple_probe() as their driver probe function.
Now that we have a matching remove function, hook it up for the relevant
drivers. This was done with the following command:
sed -i -e '/mtk_clk_simple_probe/a \
.remove = mtk_clk_simple_remove,' drivers/clk/mediatek/clk-mt8195-*.c
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Miles Chen <miles.chen@mediatek.com>
Link: https://lore.kernel.org/r/20220208124034.414635-29-wenst@chromium.org
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
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-mt8195-mfg.c')
-rw-r--r-- | drivers/clk/mediatek/clk-mt8195-mfg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/mediatek/clk-mt8195-mfg.c b/drivers/clk/mediatek/clk-mt8195-mfg.c index aca6d9c0837c..9411c556a5a9 100644 --- a/drivers/clk/mediatek/clk-mt8195-mfg.c +++ b/drivers/clk/mediatek/clk-mt8195-mfg.c @@ -39,6 +39,7 @@ static const struct of_device_id of_match_clk_mt8195_mfg[] = { static struct platform_driver clk_mt8195_mfg_drv = { .probe = mtk_clk_simple_probe, + .remove = mtk_clk_simple_remove, .driver = { .name = "clk-mt8195-mfg", .of_match_table = of_match_clk_mt8195_mfg, |