]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: mediatek: Make mtk_clk_simple_remove() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 30 Apr 2023 19:02:31 +0000 (21:02 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 10 May 2023 20:36:03 +0000 (13:36 -0700)
__mtk_clk_simple_remove() and so also mtk_clk_simple_remove() return
zero unconditionally. Make them return no value instead and convert the
drivers making use of it to platform_driver's .remove_new().

This makes the semantics in the callers of mtk_clk_simple_remove() clearer
and prepares for the quest to make platform driver's remove function return
void. There is no semantic change.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230430190233.878921-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
126 files changed:
drivers/clk/mediatek/clk-mt2701-aud.c
drivers/clk/mediatek/clk-mt2701-bdp.c
drivers/clk/mediatek/clk-mt2701-eth.c
drivers/clk/mediatek/clk-mt2701-g3d.c
drivers/clk/mediatek/clk-mt2701-hif.c
drivers/clk/mediatek/clk-mt2701-img.c
drivers/clk/mediatek/clk-mt2701-vdec.c
drivers/clk/mediatek/clk-mt2712-bdp.c
drivers/clk/mediatek/clk-mt2712-img.c
drivers/clk/mediatek/clk-mt2712-jpgdec.c
drivers/clk/mediatek/clk-mt2712-mfg.c
drivers/clk/mediatek/clk-mt2712-vdec.c
drivers/clk/mediatek/clk-mt2712-venc.c
drivers/clk/mediatek/clk-mt2712.c
drivers/clk/mediatek/clk-mt6765-audio.c
drivers/clk/mediatek/clk-mt6765-cam.c
drivers/clk/mediatek/clk-mt6765-img.c
drivers/clk/mediatek/clk-mt6765-mipi0a.c
drivers/clk/mediatek/clk-mt6765-mm.c
drivers/clk/mediatek/clk-mt6765-vcodec.c
drivers/clk/mediatek/clk-mt6779-aud.c
drivers/clk/mediatek/clk-mt6779-cam.c
drivers/clk/mediatek/clk-mt6779-img.c
drivers/clk/mediatek/clk-mt6779-ipe.c
drivers/clk/mediatek/clk-mt6779-mfg.c
drivers/clk/mediatek/clk-mt6779-vdec.c
drivers/clk/mediatek/clk-mt6779-venc.c
drivers/clk/mediatek/clk-mt6779.c
drivers/clk/mediatek/clk-mt6795-mfg.c
drivers/clk/mediatek/clk-mt6795-topckgen.c
drivers/clk/mediatek/clk-mt6795-vdecsys.c
drivers/clk/mediatek/clk-mt6795-vencsys.c
drivers/clk/mediatek/clk-mt6797-img.c
drivers/clk/mediatek/clk-mt6797-vdec.c
drivers/clk/mediatek/clk-mt6797-venc.c
drivers/clk/mediatek/clk-mt7622-aud.c
drivers/clk/mediatek/clk-mt7622-eth.c
drivers/clk/mediatek/clk-mt7622-hif.c
drivers/clk/mediatek/clk-mt7622.c
drivers/clk/mediatek/clk-mt7629-hif.c
drivers/clk/mediatek/clk-mt7981-eth.c
drivers/clk/mediatek/clk-mt7981-infracfg.c
drivers/clk/mediatek/clk-mt7981-topckgen.c
drivers/clk/mediatek/clk-mt7986-eth.c
drivers/clk/mediatek/clk-mt7986-infracfg.c
drivers/clk/mediatek/clk-mt7986-topckgen.c
drivers/clk/mediatek/clk-mt8135.c
drivers/clk/mediatek/clk-mt8167-aud.c
drivers/clk/mediatek/clk-mt8167-img.c
drivers/clk/mediatek/clk-mt8167-mfgcfg.c
drivers/clk/mediatek/clk-mt8167-vdec.c
drivers/clk/mediatek/clk-mt8167.c
drivers/clk/mediatek/clk-mt8173-img.c
drivers/clk/mediatek/clk-mt8173-pericfg.c
drivers/clk/mediatek/clk-mt8173-topckgen.c
drivers/clk/mediatek/clk-mt8173-vdecsys.c
drivers/clk/mediatek/clk-mt8173-vencsys.c
drivers/clk/mediatek/clk-mt8183-audio.c
drivers/clk/mediatek/clk-mt8183-cam.c
drivers/clk/mediatek/clk-mt8183-img.c
drivers/clk/mediatek/clk-mt8183-ipu0.c
drivers/clk/mediatek/clk-mt8183-ipu1.c
drivers/clk/mediatek/clk-mt8183-ipu_adl.c
drivers/clk/mediatek/clk-mt8183-ipu_conn.c
drivers/clk/mediatek/clk-mt8183-mfgcfg.c
drivers/clk/mediatek/clk-mt8183-vdec.c
drivers/clk/mediatek/clk-mt8183-venc.c
drivers/clk/mediatek/clk-mt8183.c
drivers/clk/mediatek/clk-mt8186-cam.c
drivers/clk/mediatek/clk-mt8186-img.c
drivers/clk/mediatek/clk-mt8186-imp_iic_wrap.c
drivers/clk/mediatek/clk-mt8186-infra_ao.c
drivers/clk/mediatek/clk-mt8186-ipe.c
drivers/clk/mediatek/clk-mt8186-mcu.c
drivers/clk/mediatek/clk-mt8186-mdp.c
drivers/clk/mediatek/clk-mt8186-mfg.c
drivers/clk/mediatek/clk-mt8186-topckgen.c
drivers/clk/mediatek/clk-mt8186-vdec.c
drivers/clk/mediatek/clk-mt8186-venc.c
drivers/clk/mediatek/clk-mt8186-wpe.c
drivers/clk/mediatek/clk-mt8188-adsp_audio26m.c
drivers/clk/mediatek/clk-mt8188-cam.c
drivers/clk/mediatek/clk-mt8188-ccu.c
drivers/clk/mediatek/clk-mt8188-img.c
drivers/clk/mediatek/clk-mt8188-imp_iic_wrap.c
drivers/clk/mediatek/clk-mt8188-infra_ao.c
drivers/clk/mediatek/clk-mt8188-ipe.c
drivers/clk/mediatek/clk-mt8188-mfg.c
drivers/clk/mediatek/clk-mt8188-peri_ao.c
drivers/clk/mediatek/clk-mt8188-vdec.c
drivers/clk/mediatek/clk-mt8188-venc.c
drivers/clk/mediatek/clk-mt8188-wpe.c
drivers/clk/mediatek/clk-mt8192-aud.c
drivers/clk/mediatek/clk-mt8192-cam.c
drivers/clk/mediatek/clk-mt8192-img.c
drivers/clk/mediatek/clk-mt8192-imp_iic_wrap.c
drivers/clk/mediatek/clk-mt8192-ipe.c
drivers/clk/mediatek/clk-mt8192-mdp.c
drivers/clk/mediatek/clk-mt8192-mfg.c
drivers/clk/mediatek/clk-mt8192-msdc.c
drivers/clk/mediatek/clk-mt8192-scp_adsp.c
drivers/clk/mediatek/clk-mt8192-vdec.c
drivers/clk/mediatek/clk-mt8192-venc.c
drivers/clk/mediatek/clk-mt8192.c
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-wpe.c
drivers/clk/mediatek/clk-mt8365-apu.c
drivers/clk/mediatek/clk-mt8365-cam.c
drivers/clk/mediatek/clk-mt8365-mfg.c
drivers/clk/mediatek/clk-mt8365-vdec.c
drivers/clk/mediatek/clk-mt8365-venc.c
drivers/clk/mediatek/clk-mt8365.c
drivers/clk/mediatek/clk-mt8516-aud.c
drivers/clk/mediatek/clk-mt8516.c
drivers/clk/mediatek/clk-mtk.c
drivers/clk/mediatek/clk-mtk.h

index 5cd343b98685830c2ae0c05e14fea92cb4747fbc..3ce7e71196fdc28e26a9782563c41f22046bf7b6 100644 (file)
@@ -150,15 +150,15 @@ err_plat_populate:
        return r;
 }
 
-static int clk_mt2701_aud_remove(struct platform_device *pdev)
+static void clk_mt2701_aud_remove(struct platform_device *pdev)
 {
        of_platform_depopulate(&pdev->dev);
-       return mtk_clk_simple_remove(pdev);
+       mtk_clk_simple_remove(pdev);
 }
 
 static struct platform_driver clk_mt2701_aud_drv = {
        .probe = clk_mt2701_aud_probe,
-       .remove = clk_mt2701_aud_remove,
+       .remove_new = clk_mt2701_aud_remove,
        .driver = {
                .name = "clk-mt2701-aud",
                .of_match_table = of_match_clk_mt2701_aud,
index 4c5b70d48df944ac40670ad32bdf7966eae799da..b25703ec8dc08f2e1fc063c112778d4480eaf9b1 100644 (file)
@@ -99,7 +99,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_bdp);
 
 static struct platform_driver clk_mt2701_bdp_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2701-bdp",
                .of_match_table = of_match_clk_mt2701_bdp,
index 9a1fb0c93964776273dcf2bb6102181c89677779..056d1e8459da4da6e0de8029c6391cc99f6f6ead 100644 (file)
@@ -53,7 +53,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_eth);
 
 static struct platform_driver clk_mt2701_eth_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2701-eth",
                .of_match_table = of_match_clk_mt2701_eth,
index c0006861a3170da7363bac1b8272551bf2da72aa..e03ac76279bacc7a7b52cf63f1d474ef89c07634 100644 (file)
@@ -52,7 +52,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_g3d);
 
 static struct platform_driver clk_mt2701_g3d_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2701-g3d",
                .of_match_table = of_match_clk_mt2701_g3d,
index ff7c0b3228e46026b4c2cfe36359ee9a54c5a60c..cbd5ece3e9e97035bc5630ed30cb8d00ce9a8eb1 100644 (file)
@@ -50,7 +50,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_hif);
 
 static struct platform_driver clk_mt2701_hif_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2701-hif",
                .of_match_table = of_match_clk_mt2701_hif,
index baa1194eb01ea54eef1fde3f16dc9a6b4628c2d5..2768360b213efc39b77184921cd977348276b0b9 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_img);
 
 static struct platform_driver clk_mt2701_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2701-img",
                .of_match_table = of_match_clk_mt2701_img,
index b7f97bc51c166737078b766314d493c83436bcd7..57711b953b7f90e4d3685784e6e8aba3cc3065d3 100644 (file)
@@ -52,7 +52,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_vdec);
 
 static struct platform_driver clk_mt2701_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2701-vdec",
                .of_match_table = of_match_clk_mt2701_vdec,
index f78e0181931612c8e96686526e541f0cfb14d600..1b54b1f3808d1c1c2eaabafc24dc0b476ddf8d85 100644 (file)
@@ -69,7 +69,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_bdp);
 
 static struct platform_driver clk_mt2712_bdp_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2712-bdp",
                .of_match_table = of_match_clk_mt2712_bdp,
index fbe7084886a0ffa34c20cdda6c2bbea84333ebe2..1fecc0f68f0e078e9901f46c79e98755c3dbaffd 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_img);
 
 static struct platform_driver clk_mt2712_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2712-img",
                .of_match_table = of_match_clk_mt2712_img,
index 7e8c2ebcdee03f3538106d0eab3f1862bf352167..019080d6d0f0e3da687dab82b1c68048e4d87625 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_jpgdec);
 
 static struct platform_driver clk_mt2712_jpgdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2712-jpgdec",
                .of_match_table = of_match_clk_mt2712_jpgdec,
index 932ea449d29964f1c54e428c2e251a835a3e5a35..39161516cf21877fa6f5fd7e7f03005bb08a8acc 100644 (file)
@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_mfg);
 
 static struct platform_driver clk_mt2712_mfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2712-mfg",
                .of_match_table = of_match_clk_mt2712_mfg,
index 2fc1f82ebf5dbaded76fb82930acc307f213116a..e1dd38fc2b3cd7a6c3072e8851d435921208e9d4 100644 (file)
@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_vdec);
 
 static struct platform_driver clk_mt2712_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2712-vdec",
                .of_match_table = of_match_clk_mt2712_vdec,
index 6d053a00cf95a8f62807ca94ebd08da8bf7b0587..ef6608a5db3869a28441f4fb672e497b3bbdf8f9 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_venc);
 
 static struct platform_driver clk_mt2712_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2712-venc",
                .of_match_table = of_match_clk_mt2712_venc,
index 74c529f6163d91d9477aaeca15a85c598e11206b..c4cc68c47af9aade33eb651fc0d1eeeb24962b7b 100644 (file)
@@ -995,7 +995,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712);
 
 static struct platform_driver clk_mt2712_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt2712",
                .of_match_table = of_match_clk_mt2712,
index 9e98d699732907a14ef6f7e5b07eaa6e8ba90b63..901bf793c272a4649db59355202582d842ee992b 100644 (file)
@@ -69,7 +69,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_audio);
 
 static struct platform_driver clk_mt6765_audio_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6765-audio",
                .of_match_table = of_match_clk_mt6765_audio,
index 6f6b29d8b29a7225b781e4ba1c8b9d68cfe0efed..19cedfa832bc15ac083733c989c6f6d773d5697b 100644 (file)
@@ -50,7 +50,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_cam);
 
 static struct platform_driver clk_mt6765_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6765-cam",
                .of_match_table = of_match_clk_mt6765_cam,
index 984201077a20e6d046c0166b11e4cd05572fd1b9..16e20c61932ea72043672e12b38dfe40c271f237 100644 (file)
@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_img);
 
 static struct platform_driver clk_mt6765_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6765-img",
                .of_match_table = of_match_clk_mt6765_img,
index a47937f4efe5a91289a3d2427ed5cacbcf176dbf..cc5bb0c95f08860dc1e649d9f47661afdec0c667 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_mipi0a);
 
 static struct platform_driver clk_mt6765_mipi0a_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6765-mipi0a",
                .of_match_table = of_match_clk_mt6765_mipi0a,
index 2b8fc052558ee12bbf35ea49ec48a408c66d7410..fc5842e13b78f820ebf5bb9f440066f0a85625d2 100644 (file)
@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_mm);
 
 static struct platform_driver clk_mt6765_mm_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6765-mm",
                .of_match_table = of_match_clk_mt6765_mm,
index 36df9615b1be421c3192e21e2b412fefa42de53e..d6e036795b0aba14154460b2f2d78b229a414f00 100644 (file)
@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_vcodec);
 
 static struct platform_driver clk_mt6765_vcodec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6765-vcodec",
                .of_match_table = of_match_clk_mt6765_vcodec,
index 6e3280d3a2e60a5f750368c2ccc191d9c0b5d850..a97e1117d30b9807d3736ca69566011989ce4c7f 100644 (file)
@@ -106,7 +106,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_aud);
 
 static struct platform_driver clk_mt6779_aud_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-aud",
                .of_match_table = of_match_clk_mt6779_aud,
index b4c4c7248672c099126f47eed6e1b77dea505233..7b1a40d891adbe13ea88c929966d92c87337f197 100644 (file)
@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_cam);
 
 static struct platform_driver clk_mt6779_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-cam",
                .of_match_table = of_match_clk_mt6779_cam,
index b760a8af3462d82299b9b52f3e727ec63a797e5b..1c53209f60a9703632d6e0522ffce0d7307f4ef3 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_img);
 
 static struct platform_driver clk_mt6779_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-img",
                .of_match_table = of_match_clk_mt6779_img,
index 9285a792c59b21e491acd4e622742432d440b5d7..784bc08ace5e0c69132582cfb707eea64a5e4001 100644 (file)
@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_ipe);
 
 static struct platform_driver clk_mt6779_ipe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-ipe",
                .of_match_table = of_match_clk_mt6779_ipe,
index d20f32d4f827108854944d643a2b3e0331c0affb..040e4c45fa5f0a753f1feef62d17a513512801be 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_mfg);
 
 static struct platform_driver clk_mt6779_mfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-mfg",
                .of_match_table = of_match_clk_mt6779_mfg,
index e062ed5aa45fde8e0e601a4135f25e8f7af9c1ea..a411c23512b7268ee20d408a93446cd13b99c8c1 100644 (file)
@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_vdec);
 
 static struct platform_driver clk_mt6779_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-vdec",
                .of_match_table = of_match_clk_mt6779_vdec,
index 0ae8ac28f8386c42da82373235f679e400f80225..f14512d284d6cc30da63a22990bb9a92cb0f0745 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_venc);
 
 static struct platform_driver clk_mt6779_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-venc",
                .of_match_table = of_match_clk_mt6779_venc,
index 1f5ea1508f612a12a642dd238513a405a7d13656..2d4c7360025771a9b732fe252d958502af7762fb 100644 (file)
@@ -1303,7 +1303,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779);
 
 static struct platform_driver clk_mt6779_infra_drv  = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6779-infra",
                .of_match_table = of_match_clk_mt6779_infra,
index 1d658bb19e822f739eeb73678d0a1c6f45149317..dff6a6ded837c79c25a44edbc95f24a36eb2394b 100644 (file)
@@ -43,7 +43,7 @@ static struct platform_driver clk_mt6795_mfg_drv = {
                .of_match_table = of_match_clk_mt6795_mfg,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt6795_mfg_drv);
 
index 9c6d63a80b19b8ede1b6349fc1e1007a3dba2e5a..be595853a925869640e89958f4377ab0f3df068b 100644 (file)
@@ -547,7 +547,7 @@ static struct platform_driver clk_mt6795_topckgen_drv = {
                .of_match_table = of_match_clk_mt6795_topckgen,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt6795_topckgen_drv);
 
index f2968f859dca09a538640e36fa6bdda9b9f84a59..9e91d6f7f5bf400dfab5cdb764284f6e72b3514c 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6795_vdecsys);
 
 static struct platform_driver clk_mt6795_vdecsys_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6795-vdecsys",
                .of_match_table = of_match_clk_mt6795_vdecsys,
index 2f8d48da1a8599e1b9d790cb3cdb95c2e9f10758..bd81e80b744fb8ff7a7ecfc4e05e34b5d899ae9c 100644 (file)
@@ -43,7 +43,7 @@ static struct platform_driver clk_mt6795_vencsys_drv = {
                .of_match_table = of_match_clk_mt6795_vencsys,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt6795_vencsys_drv);
 
index 00fc0a03e646e3ca3b7d5bc88f299bdcb4724151..e1c1ee692a1d452513db203fe150ad7a5c6291b4 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_img);
 
 static struct platform_driver clk_mt6797_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6797-img",
                .of_match_table = of_match_clk_mt6797_img,
index 447fe6fa8e15a9b2e60d6f3b9c23ae4cc82e5ee3..0ed6710ab88e0f0f35b28f9a5f88e620fd41b29e 100644 (file)
@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_vdec);
 
 static struct platform_driver clk_mt6797_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6797-vdec",
                .of_match_table = of_match_clk_mt6797_vdec,
index 95b89ff8fd1975601336dc88e83469df2bdfe05a..93d1da7423fe77a3252d0b4d676d80a27304e769 100644 (file)
@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_venc);
 
 static struct platform_driver clk_mt6797_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt6797-venc",
                .of_match_table = of_match_clk_mt6797_venc,
index dd1799dd843590d45800e9d600d1a675e27b65eb..c3ce65ced902f595f1e10e6a9ebde8b597a8ce8a 100644 (file)
@@ -135,10 +135,10 @@ err_plat_populate:
        return r;
 }
 
-static int clk_mt7622_aud_remove(struct platform_device *pdev)
+static void clk_mt7622_aud_remove(struct platform_device *pdev)
 {
        of_platform_depopulate(&pdev->dev);
-       return mtk_clk_simple_remove(pdev);
+       mtk_clk_simple_remove(pdev);
 }
 
 static const struct of_device_id of_match_clk_mt7622_aud[] = {
@@ -149,7 +149,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7622_aud);
 
 static struct platform_driver clk_mt7622_aud_drv = {
        .probe = clk_mt7622_aud_probe,
-       .remove = clk_mt7622_aud_remove,
+       .remove_new = clk_mt7622_aud_remove,
        .driver = {
                .name = "clk-mt7622-aud",
                .of_match_table = of_match_clk_mt7622_aud,
index f96b3673702959c76288e9b78791b5b211070575..df81e445026aeb35155813eca5913fae69ce1f70 100644 (file)
@@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7622_eth);
 
 static struct platform_driver clk_mt7622_eth_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt7622-eth",
                .of_match_table = of_match_clk_mt7622_eth,
index f440943f0d46729e97f8584d55ceae1b83478b25..9c738d730a7b11491e6055074eb6ea1392717162 100644 (file)
@@ -93,7 +93,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7622_hif);
 
 static struct platform_driver clk_mt7622_hif_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt7622-hif",
                .of_match_table = of_match_clk_mt7622_hif,
index 274895264427af01c7825d6d8e251119884b2ff4..fa5fb5891a09945cc70af7eb3048955a5eb2edf8 100644 (file)
@@ -526,7 +526,7 @@ static struct platform_driver clk_mt7622_drv = {
                .of_match_table = of_match_clk_mt7622,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt7622_drv)
 
index c89036bee9a7284c4a51b825a862036c1b1ad7a0..ec3a71ebb76641fbbd72f1d95828b3b539a4d141 100644 (file)
@@ -88,7 +88,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7629_hif);
 
 static struct platform_driver clk_mt7629_hif_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt7629-hif",
                .of_match_table = of_match_clk_mt7629_hif,
index b1f256b5ed4e7029ae7fabd3d40ef5ff7b22fae9..6bc509a54e14dd77b4bb6d74a25fd5b2c36cad09 100644 (file)
@@ -109,7 +109,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_eth);
 
 static struct platform_driver clk_mt7981_eth_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt7981-eth",
                .of_match_table = of_match_clk_mt7981_eth,
index 293261ef71e62842bad475e856ff226b588f9cb9..7e9d3d309151a0adf1ee5e840ce032c8d997ce56 100644 (file)
@@ -199,7 +199,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_infracfg);
 
 static struct platform_driver clk_mt7981_infracfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt7981-infracfg",
                .of_match_table = of_match_clk_mt7981_infracfg,
index 3aba1a9b9a36a60c574e9ebfefd072eadb5be36e..a777254c18723ac8b446665b38ad72de0ad1131e 100644 (file)
@@ -414,7 +414,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_topckgen);
 
 static struct platform_driver clk_mt7981_topckgen_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt7981-topckgen",
                .of_match_table = of_match_clk_mt7981_topckgen,
index 0681988960cc3ce4477de8f9054fd9fb7dba78e8..854e2c565041ef4c0101dd6bdffb03f789d4cf67 100644 (file)
@@ -94,7 +94,7 @@ static struct platform_driver clk_mt7986_eth_drv = {
                .of_match_table = of_match_clk_mt7986_eth,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt7986_eth_drv);
 
index b7efa70c2d6c271c4fb57819a8b20fa6dbe2925c..c576e9fb986c69198967cc1d3501bd605f19a419 100644 (file)
@@ -179,7 +179,7 @@ static struct platform_driver clk_mt7986_infracfg_drv = {
                .of_match_table = of_match_clk_mt7986_infracfg,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt7986_infracfg_drv);
 
index fbca3feded8f0f14bf246c1b05832a57f3d43690..f34f078ff2ff72213166ffec4e75789186ed6cff 100644 (file)
@@ -308,7 +308,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7986_topckgen);
 
 static struct platform_driver clk_mt7986_topckgen_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt7986-topckgen",
                .of_match_table = of_match_clk_mt7986_topckgen,
index 084e48a554c26297aad978359f6aab205f9ca2af..019af88d7f9c320859a9cd7b501b05f9a13c42f2 100644 (file)
@@ -558,7 +558,7 @@ static struct platform_driver clk_mt8135_drv = {
                .of_match_table = of_match_clk_mt8135,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt8135_drv);
 
index 86125635c8a6415d6ba5891bf2121aae95211efd..b73058edf3d6150640b4a3563bf546ce0c388191 100644 (file)
@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_audsys);
 
 static struct platform_driver clk_mt8167_audsys_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8167-audsys",
                .of_match_table = of_match_clk_mt8167_audsys,
index 315b7f64bad6d3f14482be088f8a8b52df7c490d..ba07d20f14b309a725f8fa48db4e6833bee6a149 100644 (file)
@@ -48,7 +48,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_imgsys);
 
 static struct platform_driver clk_mt8167_imgsys_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8167-imgsys",
                .of_match_table = of_match_clk_mt8167_imgsys,
index 4851f5bf3a9017f634796c41e69647c1204d5037..5f7dbaf97e96aefc63ee12ff13517172c3df0e2b 100644 (file)
@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_mfgcfg);
 
 static struct platform_driver clk_mt8167_mfgcfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8167-mfgcfg",
                .of_match_table = of_match_clk_mt8167_mfgcfg,
index 76900f393d31dda173b1c2813fcabe03fc5e15aa..2f662b3f16a9bcdb0ad8e6203b2c14b2d1880ad7 100644 (file)
@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_vdec);
 
 static struct platform_driver clk_mt8167_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8167-vdecsys",
                .of_match_table = of_match_clk_mt8167_vdec,
index b9041f79cbbdf996d8d45eb8b7b80252402479ac..270221c6e6e8b055443456546976751658717448 100644 (file)
@@ -887,7 +887,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167);
 
 static struct platform_driver clk_mt8167_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8167",
                .of_match_table = of_match_clk_mt8167,
index 6db2b9ab2bc9194d34c2cf7cc15c242a7463f9e8..1011b9ab3daddb9a951a5c5c307120b8e901524c 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8173_imgsys);
 
 static struct platform_driver clk_mt8173_vdecsys_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8173-imgsys",
                .of_match_table = of_match_clk_mt8173_imgsys,
index bebda74d0f4391493bdb0774db4db873200159ae..783efed3f25421a9491329fcf3e8023d3ea3e4f4 100644 (file)
@@ -115,7 +115,7 @@ static struct platform_driver clk_mt8173_pericfg_drv = {
                .of_match_table = of_match_clk_mt8173_pericfg,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt8173_pericfg_drv);
 
index baa8fd6cb31266c88395898a9eea0b54e12d628b..977d6a3c988012f146345e0865615d4f5eaa4258 100644 (file)
@@ -646,7 +646,7 @@ static struct platform_driver clk_mt8173_topckgen_drv = {
                .of_match_table = of_match_clk_mt8173_topckgen,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt8173_topckgen_drv);
 
index 625ca0b09cc225283b870264e7c6df68fd30a51d..011e3812156ff2186bcf08ed773ac05dbb420013 100644 (file)
@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8173_vdecsys);
 
 static struct platform_driver clk_mt8173_vdecsys_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8173-vdecsys",
                .of_match_table = of_match_clk_mt8173_vdecsys,
index 87755dd1a337f9208578907239ef76e9fa8f75c6..1bf84ae6a0bcb6f3c26704f249e5d7686495a047 100644 (file)
@@ -57,7 +57,7 @@ static struct platform_driver clk_mt8173_vencsys_drv = {
                .of_match_table = of_match_clk_mt8173_vencsys,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt8173_vencsys_drv);
 
index 9938c6466e762a4b5dedb12be72a82c3ed852504..716b26825ef0e7235d151e4133d1c9173c9d04b0 100644 (file)
@@ -87,10 +87,10 @@ static int clk_mt8183_audio_probe(struct platform_device *pdev)
        return r;
 }
 
-static int clk_mt8183_audio_remove(struct platform_device *pdev)
+static void clk_mt8183_audio_remove(struct platform_device *pdev)
 {
        of_platform_depopulate(&pdev->dev);
-       return mtk_clk_simple_remove(pdev);
+       mtk_clk_simple_remove(pdev);
 }
 
 static const struct of_device_id of_match_clk_mt8183_audio[] = {
@@ -101,7 +101,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_audio);
 
 static struct platform_driver clk_mt8183_audio_drv = {
        .probe = clk_mt8183_audio_probe,
-       .remove = clk_mt8183_audio_remove,
+       .remove_new = clk_mt8183_audio_remove,
        .driver = {
                .name = "clk-mt8183-audio",
                .of_match_table = of_match_clk_mt8183_audio,
index c0719624004fb633036bb5680e6b2a075928aed3..b0f8e4242a6311ffc3c7432f704c001ada64bd17 100644 (file)
@@ -51,7 +51,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_cam);
 
 static struct platform_driver clk_mt8183_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-cam",
                .of_match_table = of_match_clk_mt8183_cam,
index 55fc8061572424f14837941ba7f594f02c62c69a..6e177d2e8872c8c0e7dc1dd70c4b3dc1ad875f5e 100644 (file)
@@ -51,7 +51,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_img);
 
 static struct platform_driver clk_mt8183_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-img",
                .of_match_table = of_match_clk_mt8183_img,
index 59255eab6fe250bdf3ccbf7fa7b36d2ba611fb7f..0b61c7af8aead06f17f08be5e98f84da5d7ffd5d 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_core0);
 
 static struct platform_driver clk_mt8183_ipu_core0_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-ipu_core0",
                .of_match_table = of_match_clk_mt8183_ipu_core0,
index c4baa052c809948261983126f9cdc209020ef76b..544b1ca0e1c5a12c17430ba12c0d4fd9bc6c6834 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_core1);
 
 static struct platform_driver clk_mt8183_ipu_core1_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-ipu_core1",
                .of_match_table = of_match_clk_mt8183_ipu_core1,
index 74866e9c50d74ac5f7d2fc7f2656ddedf20bc13c..7f53674f393c26d5cfcbc21a43a176eab386ae79 100644 (file)
@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_adl);
 
 static struct platform_driver clk_mt8183_ipu_adl_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-ipu_adl",
                .of_match_table = of_match_clk_mt8183_ipu_adl,
index bd730310535785e23e59e416465d31b1c69e3594..fb03ad2d8f6a15f229088182d1e29694839ba89b 100644 (file)
@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_conn);
 
 static struct platform_driver clk_mt8183_ipu_conn_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-ipu_conn",
                .of_match_table = of_match_clk_mt8183_ipu_conn,
index 816ecf1191ee8b3b60feeb1958aff04eacd95683..ba504e19d420314fbb5081a3b93d254c020fe280 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_mfg);
 
 static struct platform_driver clk_mt8183_mfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-mfg",
                .of_match_table = of_match_clk_mt8183_mfg,
index 513b7956cbea095692aec57e1f02956bcafe0817..8c99ae89834f270a2a696822a06fa371c53d4252 100644 (file)
@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_vdec);
 
 static struct platform_driver clk_mt8183_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-vdec",
                .of_match_table = of_match_clk_mt8183_vdec,
index 532f6e12a56161fefbc3d25339096ad73ae48930..a8e0220902aee47222ac5c7c799c4773273f84a2 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_venc);
 
 static struct platform_driver clk_mt8183_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183-venc",
                .of_match_table = of_match_clk_mt8183_venc,
index 2336a1b69c0937ac8c0325a9aa977509ecb66271..e0a00b34f4c2ab63290fc23e4a1d66e6c5f91658 100644 (file)
@@ -872,7 +872,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183);
 
 static struct platform_driver clk_mt8183_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8183",
                .of_match_table = of_match_clk_mt8183,
index 656d9e6f3ee2b7fe3a834c2bbb9aa7e8c3d31d69..effd2900d2e8e8518d100d3ed828a93330f22a40 100644 (file)
@@ -82,7 +82,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_cam);
 
 static struct platform_driver clk_mt8186_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-cam",
                .of_match_table = of_match_clk_mt8186_cam,
index 754b27f038176ae5f612138c5aff209019f5e18b..71b0571e6351491b49c387bb4fc2fcadd9552097 100644 (file)
@@ -60,7 +60,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_img);
 
 static struct platform_driver clk_mt8186_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-img",
                .of_match_table = of_match_clk_mt8186_img,
index 7619c357b150d7fd40b3ac538e57da160a10ea31..640ccb5532741bcdda460a1904d81306040bf459 100644 (file)
@@ -59,7 +59,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_imp_iic_wrap);
 
 static struct platform_driver clk_mt8186_imp_iic_wrap_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-imp_iic_wrap",
                .of_match_table = of_match_clk_mt8186_imp_iic_wrap,
index a907a5def5b8c3830c7568984d1f956f25e2a14e..837304cd0ed76eb2af08807296d688cf0922ccde 100644 (file)
@@ -231,7 +231,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_infra_ao);
 
 static struct platform_driver clk_mt8186_infra_ao_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-infra-ao",
                .of_match_table = of_match_clk_mt8186_infra_ao,
index 50e340035aa70e599b573fc97a3071eabe842d91..60739e225cb6c90f1d2c869e893ed82845173510 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_ipe);
 
 static struct platform_driver clk_mt8186_ipe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-ipe",
                .of_match_table = of_match_clk_mt8186_ipe,
index d1640e4dc2adbdc0683800416b19f8ea3c58785a..eb54ccb77b74cb269ea29574dfffdc3690eceb47 100644 (file)
@@ -60,7 +60,7 @@ static struct platform_driver clk_mt8186_mcu_drv = {
                .of_match_table = of_match_clk_mt8186_mcu,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt8186_mcu_drv);
 
index e1d19007e3754f8309577818c5289badeefcac2a..9a335f2285cea612c2890a5c33bc8fa82ffed1f7 100644 (file)
@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_mdp);
 
 static struct platform_driver clk_mt8186_mdp_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-mdp",
                .of_match_table = of_match_clk_mt8186_mdp,
index aeb098b54585e70ef391889ae0c78936f6abb1c9..7618dad9e0e0e0706d06ff4fde1233907643b677 100644 (file)
@@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_mfg);
 
 static struct platform_driver clk_mt8186_mfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-mfg",
                .of_match_table = of_match_clk_mt8186_mfg,
index 1a0340a20bebecbbf698bf638c19e336d240b26a..3a8f594683bc6f5b44886bb1b7d36056d41e1bd9 100644 (file)
@@ -725,7 +725,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_topck);
 
 static struct platform_driver clk_mt8186_topck_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-topck",
                .of_match_table = of_match_clk_mt8186_topck,
index 9bf3b86328703887c960b835075bd3cccf826502..0b814e8e107f90e5c18db8f1b7b5228ecaa11535 100644 (file)
@@ -80,7 +80,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_vdec);
 
 static struct platform_driver clk_mt8186_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-vdec",
                .of_match_table = of_match_clk_mt8186_vdec,
index 0c1bc94e84cf77ae3f55bf104a75c208a740fac0..9493e51af3e2110333fbb5299ad0e50a38a602a1 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_venc);
 
 static struct platform_driver clk_mt8186_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-venc",
                .of_match_table = of_match_clk_mt8186_venc,
index c4727b1cb64d8db44c087430675a03403562b2fd..a0174eabef4a9cdd9acdad0aad89be03a1ff7984 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_wpe);
 
 static struct platform_driver clk_mt8186_wpe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8186-wpe",
                .of_match_table = of_match_clk_mt8186_wpe,
index 808f2ad3b7ee68133be55cd219e02a3f3921f698..1dc3d2bad42ded2a5191f3e7cde6b21353ad0ca6 100644 (file)
@@ -40,7 +40,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_adsp_audio26m);
 
 static struct platform_driver clk_mt8188_adsp_audio26m_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-adsp_audio26m",
                .of_match_table = of_match_clk_mt8188_adsp_audio26m,
index c5a3856bd2237eef75157be5554e6dc974af3daf..f78f564aa27e8c4352b6145df02c9b1c1db27eb6 100644 (file)
@@ -109,7 +109,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_cam);
 
 static struct platform_driver clk_mt8188_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-cam",
                .of_match_table = of_match_clk_mt8188_cam,
index ebc0d3aeee1118a738ed52610a48fe4197ad5fe4..428dcc4818c2f7c4d5c284691ffae51aae3a6c6f 100644 (file)
@@ -39,7 +39,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_ccu);
 
 static struct platform_driver clk_mt8188_ccu_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-ccu",
                .of_match_table = of_match_clk_mt8188_ccu,
index b4622875e14cd13c0f88f0a2876249714fd450a4..76c64a8992a41a2d93b0fe78044c2d8ab1e42486 100644 (file)
@@ -101,7 +101,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_imgsys_main);
 
 static struct platform_driver clk_mt8188_imgsys_main_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-imgsys_main",
                .of_match_table = of_match_clk_mt8188_imgsys_main,
index da41a3c59919c3b38b0a5cd66640870b9c91434c..66946784cdba7eefb7c883c9835eaa0193baab2d 100644 (file)
@@ -71,7 +71,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_imp_iic_wrap);
 
 static struct platform_driver clk_mt8188_imp_iic_wrap_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-imp_iic_wrap",
                .of_match_table = of_match_clk_mt8188_imp_iic_wrap,
index 91c35db40b4e88521c6a654a6580deb46284ae83..a38ddc7b6a8844cc1ef8e35965af02ffefdb29f6 100644 (file)
@@ -189,7 +189,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_infra_ao);
 
 static struct platform_driver clk_mt8188_infra_ao_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-infra_ao",
                .of_match_table = of_match_clk_mt8188_infra_ao,
index c07afbd1429ef47cc2a4b274cc4cd19ff3223b83..54fe6b689b47ebb1a80b19f5d11427728937e4e4 100644 (file)
@@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_ipe);
 
 static struct platform_driver clk_mt8188_ipe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-ipe",
                .of_match_table = of_match_clk_mt8188_ipe,
index e5a6eaf8467275b4f690ee4ca2f48569f17f8c48..1c8ef4c6820f942b3823260cee518ebe1cfa4e33 100644 (file)
@@ -38,7 +38,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_mfgcfg);
 
 static struct platform_driver clk_mt8188_mfgcfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-mfgcfg",
                .of_match_table = of_match_clk_mt8188_mfgcfg,
index b00e1ae8bd260ad3b3f55c35bba92d87c94aeed3..a8214e42b8e594019fd88fce18f02e8d78069b04 100644 (file)
@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_peri_ao);
 
 static struct platform_driver clk_mt8188_peri_ao_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-peri_ao",
                .of_match_table = of_match_clk_mt8188_peri_ao,
index 8c3d76531753572dede88b643066e7fb876ee31c..db5855d133ac544284e4404c7307d0a05c6dc446 100644 (file)
@@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_vdec);
 
 static struct platform_driver clk_mt8188_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-vdec",
                .of_match_table = of_match_clk_mt8188_vdec,
index 245367f33fa538c58ab4711bb7ad08b477e79910..5b1713908ed2c1ada986cb35d56e29f2e27362ff 100644 (file)
@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_venc1);
 
 static struct platform_driver clk_mt8188_venc1_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-venc1",
                .of_match_table = of_match_clk_mt8188_venc1,
index 393ac38a21724863d22ce2acd2c6e64faf387f74..f394ec049872724c3c7c7007796217a80a1c683e 100644 (file)
@@ -94,7 +94,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_wpe);
 
 static struct platform_driver clk_mt8188_wpe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8188-wpe",
                .of_match_table = of_match_clk_mt8188_wpe,
index ee251492d4f13a05d4404b54a390958831c6a354..5bce67bf701d372f38ed1cca9d6bc0b2f046f331 100644 (file)
@@ -97,10 +97,10 @@ static int clk_mt8192_aud_probe(struct platform_device *pdev)
        return r;
 }
 
-static int clk_mt8192_aud_remove(struct platform_device *pdev)
+static void clk_mt8192_aud_remove(struct platform_device *pdev)
 {
        of_platform_depopulate(&pdev->dev);
-       return mtk_clk_simple_remove(pdev);
+       mtk_clk_simple_remove(pdev);
 }
 
 static const struct of_device_id of_match_clk_mt8192_aud[] = {
@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_aud);
 
 static struct platform_driver clk_mt8192_aud_drv = {
        .probe = clk_mt8192_aud_probe,
-       .remove = clk_mt8192_aud_remove,
+       .remove_new = clk_mt8192_aud_remove,
        .driver = {
                .name = "clk-mt8192-aud",
                .of_match_table = of_match_clk_mt8192_aud,
index 7befd6ee8c799c1b1265edc8a0bde0e0e134a5b4..7b9327eba92417272e6e1d080856a66413228790 100644 (file)
@@ -99,7 +99,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_cam);
 
 static struct platform_driver clk_mt8192_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-cam",
                .of_match_table = of_match_clk_mt8192_cam,
index a7505150a9d014124cdb5a6f133501421426b98b..0208030c31a0d00b887808a8ffcae9b463c64625 100644 (file)
@@ -62,7 +62,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_img);
 
 static struct platform_driver clk_mt8192_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-img",
                .of_match_table = of_match_clk_mt8192_img,
index cd5d00a7c54b32081978f31777884c75bd35e089..275581f8c7107b8625cd500e7b619856f804fd1e 100644 (file)
@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_imp_iic_wrap);
 
 static struct platform_driver clk_mt8192_imp_iic_wrap_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-imp_iic_wrap",
                .of_match_table = of_match_clk_mt8192_imp_iic_wrap,
index dee671ae38e6d42d96fe4561d7d3d6cec7a3a39e..f3656c3b9573c61e0c54f2e0655f3eb5e67bd9af 100644 (file)
@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_ipe);
 
 static struct platform_driver clk_mt8192_ipe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-ipe",
                .of_match_table = of_match_clk_mt8192_ipe,
index f7b27264e378c5f8f48ea59e72b4220962f3ab64..5385ac95533a7632a65aea9873c99425b4e173fa 100644 (file)
@@ -74,7 +74,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_mdp);
 
 static struct platform_driver clk_mt8192_mdp_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-mdp",
                .of_match_table = of_match_clk_mt8192_mdp,
index 85f76a2bbac4553ffe944f38effdb91a85fd2f1e..0ac7045cf5d186aaafb88273dd39174dc7ec253a 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_mfg);
 
 static struct platform_driver clk_mt8192_mfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-mfg",
                .of_match_table = of_match_clk_mt8192_mfg,
index 60d65f96d39a13674c8717b7a0729f8df4066f0a..9da647c5b8b31fe0173af69d57e5430d1750767c 100644 (file)
@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_msdc);
 
 static struct platform_driver clk_mt8192_msdc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-msdc",
                .of_match_table = of_match_clk_mt8192_msdc,
index 6aad57797c3908ab76913aedaea0191388545a22..44091147c8136b3e599d871a89286c1731f8ef5e 100644 (file)
@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_scp_adsp);
 
 static struct platform_driver clk_mt8192_scp_adsp_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-scp_adsp",
                .of_match_table = of_match_clk_mt8192_scp_adsp,
index 473afd58495c29bcdee7e59b09a188b00fdea217..d82dee8317b2982aca60c3ae3f5a9d474eb0f4cb 100644 (file)
@@ -86,7 +86,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_vdec);
 
 static struct platform_driver clk_mt8192_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-vdec",
                .of_match_table = of_match_clk_mt8192_vdec,
index 57b1b16e23108a2feb41f4f025f2bdd4c4a9ffca..b0ef242991e5e6ebd9902cb8b056feaad5ef80b9 100644 (file)
@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_venc);
 
 static struct platform_driver clk_mt8192_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8192-venc",
                .of_match_table = of_match_clk_mt8192_venc,
index aa11291463f7578afa7c04d28c5fcaffa695820a..85edbe3c9bafcfd395769c743a814c99b8e61183 100644 (file)
@@ -1027,7 +1027,7 @@ static struct platform_driver clk_mt8192_drv = {
                .of_match_table = of_match_clk_mt8192,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt8192_drv);
 MODULE_LICENSE("GPL");
index 77e608be579aa138e5fab3db5ea682d56ad4f878..24cd6a2092b6411b6b9b4dae173b839da0b09fbb 100644 (file)
@@ -135,7 +135,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_cam);
 
 static struct platform_driver clk_mt8195_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-cam",
                .of_match_table = of_match_clk_mt8195_cam,
index bdc2e6f3e9ce3cb012a8fa9300da11d8e550fec2..24dab128507a369c8540cec36df3c6a538519da1 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_ccu);
 
 static struct platform_driver clk_mt8195_ccu_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-ccu",
                .of_match_table = of_match_clk_mt8195_ccu,
index d853e0e63d87a8a32ff8404069ca05984ebc9c1b..c7dc3e9d133d1b563478701788e18bba9c3e27c5 100644 (file)
@@ -89,7 +89,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_img);
 
 static struct platform_driver clk_mt8195_img_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-img",
                .of_match_table = of_match_clk_mt8195_img,
index 1d808876f5c54fb89e87d1c80bce6d13b0298104..94912d45509edb3fdb448da12b2f536703124654 100644 (file)
@@ -59,7 +59,7 @@ MODULE_DEVICE_TABLE(of, 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,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-imp_iic_wrap",
                .of_match_table = of_match_clk_mt8195_imp_iic_wrap,
index f3ee4390707dd7c2fd07341d9099569e95211944..dfba6eb61ccfeed3239f7c032f4e9f5d8c26204b 100644 (file)
@@ -233,7 +233,7 @@ MODULE_DEVICE_TABLE(of, 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,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-infra_ao",
                .of_match_table = of_match_clk_mt8195_infra_ao,
index 4c47f65212753b51b2240646ffd62c5c0332602c..21e76e5ad37609702786705117c88e894a143342 100644 (file)
@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_ipe);
 
 static struct platform_driver clk_mt8195_ipe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-ipe",
                .of_match_table = of_match_clk_mt8195_ipe,
index 038acf0b1167ab73529d8e1301aeb37169bec6ed..4951574abf2afbd4ddb11025019bf21782a7e89e 100644 (file)
@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_mfg);
 
 static struct platform_driver clk_mt8195_mfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-mfg",
                .of_match_table = of_match_clk_mt8195_mfg,
index 0de162593c0153cbee2a23e4f5b63906b28838e4..39069aaf6bcd8e850efd6e91f3fa88194900b68a 100644 (file)
@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, 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,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-peri_ao",
                .of_match_table = of_match_clk_mt8195_peri_ao,
index d0d3e3b097803a698b1284c619f5fdec4021a094..2b94d75be29550237d1746b83ad275c7d1728dbd 100644 (file)
@@ -40,7 +40,7 @@ MODULE_DEVICE_TABLE(of, 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,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-scp_adsp",
                .of_match_table = of_match_clk_mt8195_scp_adsp,
index 2bcbceb10326bb2a27f3128f0193ace2db3d4c86..d266a6d3b6032dfc8c13642d64daf322e587bfdc 100644 (file)
@@ -97,7 +97,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_vdec);
 
 static struct platform_driver clk_mt8195_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-vdec",
                .of_match_table = of_match_clk_mt8195_vdec,
index 0991a69687650ef513ca7d3c720e06b4463cc61f..93093fadfd0d7d1ee313f68396456e1cedf0dea5 100644 (file)
@@ -62,7 +62,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_venc);
 
 static struct platform_driver clk_mt8195_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-venc",
                .of_match_table = of_match_clk_mt8195_venc,
index 289896cb2f6ceb0d7c49ce0c3eb17bdf81a48c86..7324738179a4f1df8359db07749a41e4453dada7 100644 (file)
@@ -136,7 +136,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8195_wpe);
 
 static struct platform_driver clk_mt8195_wpe_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8195-wpe",
                .of_match_table = of_match_clk_mt8195_wpe,
index 74f7fb22c87f3b9ef1798e6ef1abbb345533f7d3..4f10ce1531d2cd6eb8eb4b5f5274252cdf6cfde8 100644 (file)
@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8365_apu);
 
 static struct platform_driver clk_mt8365_apu_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8365-apu",
                .of_match_table = of_match_clk_mt8365_apu,
index 61516e19acd11e9ba96ac21a82cc8266a0cf55fb..fe428a4f1d376cd232a413e9edc49a8d88c7cc17 100644 (file)
@@ -48,7 +48,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8365_cam);
 
 static struct platform_driver clk_mt8365_cam_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8365-cam",
                .of_match_table = of_match_clk_mt8365_cam,
index 4c836c69db4fe2cd85b131292c26ff347f662232..4a590284f7e294426f5df2c542e2ea6964d344c7 100644 (file)
@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8365_mfg);
 
 static struct platform_driver clk_mt8365_mfg_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8365-mfg",
                .of_match_table = of_match_clk_mt8365_mfg,
index b51571e9da00607909c4946085ab2ddca27ed15a..233924837c3bdf9e525ae892337feca1aebf0de4 100644 (file)
@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8365_vdec);
 
 static struct platform_driver clk_mt8365_vdec_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8365-vdec",
                .of_match_table = of_match_clk_mt8365_vdec,
index 572344645c86645202a89c489e4f7620bee7e26d..cc063f18e56b8a5ffde0d6f44758b291e84f2f13 100644 (file)
@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8365_venc);
 
 static struct platform_driver clk_mt8365_venc_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8365-venc",
                .of_match_table = of_match_clk_mt8365_venc,
index 6b4e193f648d81e3181abaef3fc80a7929ce8c14..e10134dac34b4ca1488f53bad7b612b4befd43d5 100644 (file)
@@ -799,7 +799,7 @@ static struct platform_driver clk_mt8365_drv = {
                .of_match_table = of_match_clk_mt8365,
        },
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
 };
 module_platform_driver(clk_mt8365_drv);
 MODULE_LICENSE("GPL");
index 48340fc7430db3d0309555f5247f24d22f9ef785..d1e848e78fd568ad35665a05a0b8c1e5df58d549 100644 (file)
@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8516_aud);
 
 static struct platform_driver clk_mt8516_aud_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8516-aud",
                .of_match_table = of_match_clk_mt8516_aud,
index 21eb052b0a539c060401bc1990435d0ede8073cc..b8ae837c59dc8c74fc47cee950b1dcaf3e46a23a 100644 (file)
@@ -669,7 +669,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8516);
 
 static struct platform_driver clk_mt8516_drv = {
        .probe = mtk_clk_simple_probe,
-       .remove = mtk_clk_simple_remove,
+       .remove_new = mtk_clk_simple_remove,
        .driver = {
                .name = "clk-mt8516",
                .of_match_table = of_match_clk_mt8516,
index fd2214c3242f2b2c372d088337fbdeef18220de8..4816da9c6da40befcde3573c6bed996525e7d41c 100644 (file)
@@ -604,7 +604,7 @@ free_data:
        return r;
 }
 
-static int __mtk_clk_simple_remove(struct platform_device *pdev,
+static void __mtk_clk_simple_remove(struct platform_device *pdev,
                                   struct device_node *node)
 {
        struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev);
@@ -629,8 +629,6 @@ static int __mtk_clk_simple_remove(struct platform_device *pdev,
                mtk_clk_unregister_fixed_clks(mcd->fixed_clks,
                                              mcd->num_fixed_clks, clk_data);
        mtk_free_clk_data(clk_data);
-
-       return 0;
 }
 
 int mtk_clk_pdev_probe(struct platform_device *pdev)
@@ -655,13 +653,15 @@ int mtk_clk_pdev_remove(struct platform_device *pdev)
        struct device *dev = &pdev->dev;
        struct device_node *node = dev->parent->of_node;
 
-       return __mtk_clk_simple_remove(pdev, node);
+       __mtk_clk_simple_remove(pdev, node);
+
+       return 0;
 }
 EXPORT_SYMBOL_GPL(mtk_clk_pdev_remove);
 
-int mtk_clk_simple_remove(struct platform_device *pdev)
+void mtk_clk_simple_remove(struct platform_device *pdev)
 {
-       return __mtk_clk_simple_remove(pdev, pdev->dev.of_node);
+       __mtk_clk_simple_remove(pdev, pdev->dev.of_node);
 }
 EXPORT_SYMBOL_GPL(mtk_clk_simple_remove);
 
index b7a751861fcee32b45dba3c5dedd6507ed0aeb13..cc8070a133a470a2386ced0d0e7f3f40afbcab5c 100644 (file)
@@ -242,6 +242,6 @@ struct mtk_clk_desc {
 int mtk_clk_pdev_probe(struct platform_device *pdev);
 int mtk_clk_pdev_remove(struct platform_device *pdev);
 int mtk_clk_simple_probe(struct platform_device *pdev);
-int mtk_clk_simple_remove(struct platform_device *pdev);
+void mtk_clk_simple_remove(struct platform_device *pdev);
 
 #endif /* __DRV_CLK_MTK_H */