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 3d261fc3848e5e2296cd62336020547a6ca92753..e4d00fe6e757b3240cd29ace4d2d3051bee74991 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 f846f1d736051f40a8e7ebc53d2b92da4ad6f912..4e326b6301ba1e121d39f132551e33a883749ad1 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 22b52a8f15feae81056d980f315c231e1c32766f..12f5c436d07548b7902a326ea3a09d615ec2a951 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 4ab312eb26a5d5f7f811677a17398bc718802b79..fbc809d050727fa0ed2853991f1c502622a719ba 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 5f9b69967459030df4e8872e168cb8dac5a02edb..8ebe3b9415c48c417bda32b781f8dd434e9ab110 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 fc1d42b6ac846a1c87a287ba65dd98be8f905b33..b0d745cf77523a24b23865bb90aec7f31c58a05a 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 aca6d9c0837ca611cb80a5dbfae430da58dec9bc..9411c556a5a97da4cd379ed13df2883a8cf94824 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 907a92b22de8d0657d980d614f3c7ff20e5a6172..2f6b3bb657dbbcc0e11229147c3678f16a5eef5b 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 26b4846c589451d85266baf69fbf10e362ecaf9f..e16c383f631b55506972ade7dd14b4055502b1a3 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 a1df04f42a906c6d036eac81c98bb7b935b7a56a..a1446b66638505eb39f5c4a8559248f59df84fe8 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 7339851a0856641e50cd7b2b8b5372aac15dd0b0..622f57804f961628f5d672e52b2590b8168e2d7f 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 c3241466a8d0c55d13c7e69ad013904a64c8553f..bf2939c3a0230479e9b2cde3e63892efdc7baac5 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 ce0b9a40a1794c0b755cbe5c0dba9ce5244840bc..ffd52c7628909d7b5be33768d6c1b894397edf09 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 274d60838d8e94158ae5c14b8f84cf9fed1a2238..b483fab10e187625059c923248bb1cd097eb24f1 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,