clk: mediatek: mt8195: Hook up mtk_clk_simple_remove()
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Feb 2022 12:40:31 +0000 (20:40 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Feb 2022 20:12:25 +0000 (12:12 -0800)
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>
14 files changed:
drivers/clk/mediatek/clk-mt8195-cam.c
drivers/clk/mediatek/clk-mt8195-ccu.c
drivers/clk/mediatek/clk-mt8195-img.c
drivers/clk/mediatek/clk-mt8195-imp_iic_wrap.c
drivers/clk/mediatek/clk-mt8195-infra_ao.c
drivers/clk/mediatek/clk-mt8195-ipe.c
drivers/clk/mediatek/clk-mt8195-mfg.c
drivers/clk/mediatek/clk-mt8195-peri_ao.c
drivers/clk/mediatek/clk-mt8195-scp_adsp.c
drivers/clk/mediatek/clk-mt8195-vdec.c
drivers/clk/mediatek/clk-mt8195-venc.c
drivers/clk/mediatek/clk-mt8195-vpp0.c
drivers/clk/mediatek/clk-mt8195-vpp1.c
drivers/clk/mediatek/clk-mt8195-wpe.c

index 3d261fc..e4d00fe 100644 (file)
@@ -134,6 +134,7 @@ static const struct of_device_id of_match_clk_mt8195_cam[] = {
 
 static struct platform_driver clk_mt8195_cam_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-cam",
                .of_match_table = of_match_clk_mt8195_cam,
index f846f1d..4e326b6 100644 (file)
@@ -42,6 +42,7 @@ static const struct of_device_id of_match_clk_mt8195_ccu[] = {
 
 static struct platform_driver clk_mt8195_ccu_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-ccu",
                .of_match_table = of_match_clk_mt8195_ccu,
index 22b52a8..12f5c43 100644 (file)
@@ -88,6 +88,7 @@ static const struct of_device_id of_match_clk_mt8195_img[] = {
 
 static struct platform_driver clk_mt8195_img_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-img",
                .of_match_table = of_match_clk_mt8195_img,
index 4ab312e..fbc809d 100644 (file)
@@ -58,6 +58,7 @@ static const struct of_device_id of_match_clk_mt8195_imp_iic_wrap[] = {
 
 static struct platform_driver clk_mt8195_imp_iic_wrap_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-imp_iic_wrap",
                .of_match_table = of_match_clk_mt8195_imp_iic_wrap,
index 5f9b699..8ebe3b9 100644 (file)
@@ -198,6 +198,7 @@ static const struct of_device_id of_match_clk_mt8195_infra_ao[] = {
 
 static struct platform_driver clk_mt8195_infra_ao_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-infra_ao",
                .of_match_table = of_match_clk_mt8195_infra_ao,
index fc1d42b..b0d745c 100644 (file)
@@ -43,6 +43,7 @@ static const struct of_device_id of_match_clk_mt8195_ipe[] = {
 
 static struct platform_driver clk_mt8195_ipe_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-ipe",
                .of_match_table = of_match_clk_mt8195_ipe,
index aca6d9c..9411c55 100644 (file)
@@ -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,
index 907a92b..2f6b3bb 100644 (file)
@@ -54,6 +54,7 @@ static const struct of_device_id of_match_clk_mt8195_peri_ao[] = {
 
 static struct platform_driver clk_mt8195_peri_ao_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-peri_ao",
                .of_match_table = of_match_clk_mt8195_peri_ao,
index 26b4846..e16c383 100644 (file)
@@ -39,6 +39,7 @@ static const struct of_device_id of_match_clk_mt8195_scp_adsp[] = {
 
 static struct platform_driver clk_mt8195_scp_adsp_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-scp_adsp",
                .of_match_table = of_match_clk_mt8195_scp_adsp,
index a1df04f..a1446b6 100644 (file)
@@ -96,6 +96,7 @@ static const struct of_device_id of_match_clk_mt8195_vdec[] = {
 
 static struct platform_driver clk_mt8195_vdec_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-vdec",
                .of_match_table = of_match_clk_mt8195_vdec,
index 7339851..622f578 100644 (file)
@@ -61,6 +61,7 @@ static const struct of_device_id of_match_clk_mt8195_venc[] = {
 
 static struct platform_driver clk_mt8195_venc_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-venc",
                .of_match_table = of_match_clk_mt8195_venc,
index c324146..bf2939c 100644 (file)
@@ -102,6 +102,7 @@ static const struct of_device_id of_match_clk_mt8195_vpp0[] = {
 
 static struct platform_driver clk_mt8195_vpp0_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-vpp0",
                .of_match_table = of_match_clk_mt8195_vpp0,
index ce0b9a4..ffd52c7 100644 (file)
@@ -100,6 +100,7 @@ static const struct of_device_id of_match_clk_mt8195_vpp1[] = {
 
 static struct platform_driver clk_mt8195_vpp1_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-vpp1",
                .of_match_table = of_match_clk_mt8195_vpp1,
index 274d608..b483fab 100644 (file)
@@ -135,6 +135,7 @@ static const struct of_device_id of_match_clk_mt8195_wpe[] = {
 
 static struct platform_driver clk_mt8195_wpe_drv = {
        .probe = mtk_clk_simple_probe,
+       .remove = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-wpe",
                .of_match_table = of_match_clk_mt8195_wpe,