Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: mediatek: Make mtk_clk_simple_remove() return void

__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>

authored by

Uwe Kleine-König and committed by
Stephen Boyd
61ca6ee7 ac9a7868

+139 -139
+3 -3
drivers/clk/mediatek/clk-mt2701-aud.c
··· 150 150 return r; 151 151 } 152 152 153 - static int clk_mt2701_aud_remove(struct platform_device *pdev) 153 + static void clk_mt2701_aud_remove(struct platform_device *pdev) 154 154 { 155 155 of_platform_depopulate(&pdev->dev); 156 - return mtk_clk_simple_remove(pdev); 156 + mtk_clk_simple_remove(pdev); 157 157 } 158 158 159 159 static struct platform_driver clk_mt2701_aud_drv = { 160 160 .probe = clk_mt2701_aud_probe, 161 - .remove = clk_mt2701_aud_remove, 161 + .remove_new = clk_mt2701_aud_remove, 162 162 .driver = { 163 163 .name = "clk-mt2701-aud", 164 164 .of_match_table = of_match_clk_mt2701_aud,
+1 -1
drivers/clk/mediatek/clk-mt2701-bdp.c
··· 99 99 100 100 static struct platform_driver clk_mt2701_bdp_drv = { 101 101 .probe = mtk_clk_simple_probe, 102 - .remove = mtk_clk_simple_remove, 102 + .remove_new = mtk_clk_simple_remove, 103 103 .driver = { 104 104 .name = "clk-mt2701-bdp", 105 105 .of_match_table = of_match_clk_mt2701_bdp,
+1 -1
drivers/clk/mediatek/clk-mt2701-eth.c
··· 53 53 54 54 static struct platform_driver clk_mt2701_eth_drv = { 55 55 .probe = mtk_clk_simple_probe, 56 - .remove = mtk_clk_simple_remove, 56 + .remove_new = mtk_clk_simple_remove, 57 57 .driver = { 58 58 .name = "clk-mt2701-eth", 59 59 .of_match_table = of_match_clk_mt2701_eth,
+1 -1
drivers/clk/mediatek/clk-mt2701-g3d.c
··· 52 52 53 53 static struct platform_driver clk_mt2701_g3d_drv = { 54 54 .probe = mtk_clk_simple_probe, 55 - .remove = mtk_clk_simple_remove, 55 + .remove_new = mtk_clk_simple_remove, 56 56 .driver = { 57 57 .name = "clk-mt2701-g3d", 58 58 .of_match_table = of_match_clk_mt2701_g3d,
+1 -1
drivers/clk/mediatek/clk-mt2701-hif.c
··· 50 50 51 51 static struct platform_driver clk_mt2701_hif_drv = { 52 52 .probe = mtk_clk_simple_probe, 53 - .remove = mtk_clk_simple_remove, 53 + .remove_new = mtk_clk_simple_remove, 54 54 .driver = { 55 55 .name = "clk-mt2701-hif", 56 56 .of_match_table = of_match_clk_mt2701_hif,
+1 -1
drivers/clk/mediatek/clk-mt2701-img.c
··· 47 47 48 48 static struct platform_driver clk_mt2701_img_drv = { 49 49 .probe = mtk_clk_simple_probe, 50 - .remove = mtk_clk_simple_remove, 50 + .remove_new = mtk_clk_simple_remove, 51 51 .driver = { 52 52 .name = "clk-mt2701-img", 53 53 .of_match_table = of_match_clk_mt2701_img,
+1 -1
drivers/clk/mediatek/clk-mt2701-vdec.c
··· 52 52 53 53 static struct platform_driver clk_mt2701_vdec_drv = { 54 54 .probe = mtk_clk_simple_probe, 55 - .remove = mtk_clk_simple_remove, 55 + .remove_new = mtk_clk_simple_remove, 56 56 .driver = { 57 57 .name = "clk-mt2701-vdec", 58 58 .of_match_table = of_match_clk_mt2701_vdec,
+1 -1
drivers/clk/mediatek/clk-mt2712-bdp.c
··· 69 69 70 70 static struct platform_driver clk_mt2712_bdp_drv = { 71 71 .probe = mtk_clk_simple_probe, 72 - .remove = mtk_clk_simple_remove, 72 + .remove_new = mtk_clk_simple_remove, 73 73 .driver = { 74 74 .name = "clk-mt2712-bdp", 75 75 .of_match_table = of_match_clk_mt2712_bdp,
+1 -1
drivers/clk/mediatek/clk-mt2712-img.c
··· 47 47 48 48 static struct platform_driver clk_mt2712_img_drv = { 49 49 .probe = mtk_clk_simple_probe, 50 - .remove = mtk_clk_simple_remove, 50 + .remove_new = mtk_clk_simple_remove, 51 51 .driver = { 52 52 .name = "clk-mt2712-img", 53 53 .of_match_table = of_match_clk_mt2712_img,
+1 -1
drivers/clk/mediatek/clk-mt2712-jpgdec.c
··· 43 43 44 44 static struct platform_driver clk_mt2712_jpgdec_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt2712-jpgdec", 49 49 .of_match_table = of_match_clk_mt2712_jpgdec,
+1 -1
drivers/clk/mediatek/clk-mt2712-mfg.c
··· 42 42 43 43 static struct platform_driver clk_mt2712_mfg_drv = { 44 44 .probe = mtk_clk_simple_probe, 45 - .remove = mtk_clk_simple_remove, 45 + .remove_new = mtk_clk_simple_remove, 46 46 .driver = { 47 47 .name = "clk-mt2712-mfg", 48 48 .of_match_table = of_match_clk_mt2712_mfg,
+1 -1
drivers/clk/mediatek/clk-mt2712-vdec.c
··· 55 55 56 56 static struct platform_driver clk_mt2712_vdec_drv = { 57 57 .probe = mtk_clk_simple_probe, 58 - .remove = mtk_clk_simple_remove, 58 + .remove_new = mtk_clk_simple_remove, 59 59 .driver = { 60 60 .name = "clk-mt2712-vdec", 61 61 .of_match_table = of_match_clk_mt2712_vdec,
+1 -1
drivers/clk/mediatek/clk-mt2712-venc.c
··· 44 44 45 45 static struct platform_driver clk_mt2712_venc_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt2712-venc", 50 50 .of_match_table = of_match_clk_mt2712_venc,
+1 -1
drivers/clk/mediatek/clk-mt2712.c
··· 995 995 996 996 static struct platform_driver clk_mt2712_drv = { 997 997 .probe = mtk_clk_simple_probe, 998 - .remove = mtk_clk_simple_remove, 998 + .remove_new = mtk_clk_simple_remove, 999 999 .driver = { 1000 1000 .name = "clk-mt2712", 1001 1001 .of_match_table = of_match_clk_mt2712,
+1 -1
drivers/clk/mediatek/clk-mt6765-audio.c
··· 69 69 70 70 static struct platform_driver clk_mt6765_audio_drv = { 71 71 .probe = mtk_clk_simple_probe, 72 - .remove = mtk_clk_simple_remove, 72 + .remove_new = mtk_clk_simple_remove, 73 73 .driver = { 74 74 .name = "clk-mt6765-audio", 75 75 .of_match_table = of_match_clk_mt6765_audio,
+1 -1
drivers/clk/mediatek/clk-mt6765-cam.c
··· 50 50 51 51 static struct platform_driver clk_mt6765_cam_drv = { 52 52 .probe = mtk_clk_simple_probe, 53 - .remove = mtk_clk_simple_remove, 53 + .remove_new = mtk_clk_simple_remove, 54 54 .driver = { 55 55 .name = "clk-mt6765-cam", 56 56 .of_match_table = of_match_clk_mt6765_cam,
+1 -1
drivers/clk/mediatek/clk-mt6765-img.c
··· 46 46 47 47 static struct platform_driver clk_mt6765_img_drv = { 48 48 .probe = mtk_clk_simple_probe, 49 - .remove = mtk_clk_simple_remove, 49 + .remove_new = mtk_clk_simple_remove, 50 50 .driver = { 51 51 .name = "clk-mt6765-img", 52 52 .of_match_table = of_match_clk_mt6765_img,
+1 -1
drivers/clk/mediatek/clk-mt6765-mipi0a.c
··· 43 43 44 44 static struct platform_driver clk_mt6765_mipi0a_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt6765-mipi0a", 49 49 .of_match_table = of_match_clk_mt6765_mipi0a,
+1 -1
drivers/clk/mediatek/clk-mt6765-mm.c
··· 72 72 73 73 static struct platform_driver clk_mt6765_mm_drv = { 74 74 .probe = mtk_clk_simple_probe, 75 - .remove = mtk_clk_simple_remove, 75 + .remove_new = mtk_clk_simple_remove, 76 76 .driver = { 77 77 .name = "clk-mt6765-mm", 78 78 .of_match_table = of_match_clk_mt6765_mm,
+1 -1
drivers/clk/mediatek/clk-mt6765-vcodec.c
··· 45 45 46 46 static struct platform_driver clk_mt6765_vcodec_drv = { 47 47 .probe = mtk_clk_simple_probe, 48 - .remove = mtk_clk_simple_remove, 48 + .remove_new = mtk_clk_simple_remove, 49 49 .driver = { 50 50 .name = "clk-mt6765-vcodec", 51 51 .of_match_table = of_match_clk_mt6765_vcodec,
+1 -1
drivers/clk/mediatek/clk-mt6779-aud.c
··· 106 106 107 107 static struct platform_driver clk_mt6779_aud_drv = { 108 108 .probe = mtk_clk_simple_probe, 109 - .remove = mtk_clk_simple_remove, 109 + .remove_new = mtk_clk_simple_remove, 110 110 .driver = { 111 111 .name = "clk-mt6779-aud", 112 112 .of_match_table = of_match_clk_mt6779_aud,
+1 -1
drivers/clk/mediatek/clk-mt6779-cam.c
··· 55 55 56 56 static struct platform_driver clk_mt6779_cam_drv = { 57 57 .probe = mtk_clk_simple_probe, 58 - .remove = mtk_clk_simple_remove, 58 + .remove_new = mtk_clk_simple_remove, 59 59 .driver = { 60 60 .name = "clk-mt6779-cam", 61 61 .of_match_table = of_match_clk_mt6779_cam,
+1 -1
drivers/clk/mediatek/clk-mt6779-img.c
··· 47 47 48 48 static struct platform_driver clk_mt6779_img_drv = { 49 49 .probe = mtk_clk_simple_probe, 50 - .remove = mtk_clk_simple_remove, 50 + .remove_new = mtk_clk_simple_remove, 51 51 .driver = { 52 52 .name = "clk-mt6779-img", 53 53 .of_match_table = of_match_clk_mt6779_img,
+1 -1
drivers/clk/mediatek/clk-mt6779-ipe.c
··· 49 49 50 50 static struct platform_driver clk_mt6779_ipe_drv = { 51 51 .probe = mtk_clk_simple_probe, 52 - .remove = mtk_clk_simple_remove, 52 + .remove_new = mtk_clk_simple_remove, 53 53 .driver = { 54 54 .name = "clk-mt6779-ipe", 55 55 .of_match_table = of_match_clk_mt6779_ipe,
+1 -1
drivers/clk/mediatek/clk-mt6779-mfg.c
··· 44 44 45 45 static struct platform_driver clk_mt6779_mfg_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt6779-mfg", 50 50 .of_match_table = of_match_clk_mt6779_mfg,
+1 -1
drivers/clk/mediatek/clk-mt6779-vdec.c
··· 56 56 57 57 static struct platform_driver clk_mt6779_vdec_drv = { 58 58 .probe = mtk_clk_simple_probe, 59 - .remove = mtk_clk_simple_remove, 59 + .remove_new = mtk_clk_simple_remove, 60 60 .driver = { 61 61 .name = "clk-mt6779-vdec", 62 62 .of_match_table = of_match_clk_mt6779_vdec,
+1 -1
drivers/clk/mediatek/clk-mt6779-venc.c
··· 47 47 48 48 static struct platform_driver clk_mt6779_venc_drv = { 49 49 .probe = mtk_clk_simple_probe, 50 - .remove = mtk_clk_simple_remove, 50 + .remove_new = mtk_clk_simple_remove, 51 51 .driver = { 52 52 .name = "clk-mt6779-venc", 53 53 .of_match_table = of_match_clk_mt6779_venc,
+1 -1
drivers/clk/mediatek/clk-mt6779.c
··· 1303 1303 1304 1304 static struct platform_driver clk_mt6779_infra_drv = { 1305 1305 .probe = mtk_clk_simple_probe, 1306 - .remove = mtk_clk_simple_remove, 1306 + .remove_new = mtk_clk_simple_remove, 1307 1307 .driver = { 1308 1308 .name = "clk-mt6779-infra", 1309 1309 .of_match_table = of_match_clk_mt6779_infra,
+1 -1
drivers/clk/mediatek/clk-mt6795-mfg.c
··· 43 43 .of_match_table = of_match_clk_mt6795_mfg, 44 44 }, 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 }; 48 48 module_platform_driver(clk_mt6795_mfg_drv); 49 49
+1 -1
drivers/clk/mediatek/clk-mt6795-topckgen.c
··· 547 547 .of_match_table = of_match_clk_mt6795_topckgen, 548 548 }, 549 549 .probe = mtk_clk_simple_probe, 550 - .remove = mtk_clk_simple_remove, 550 + .remove_new = mtk_clk_simple_remove, 551 551 }; 552 552 module_platform_driver(clk_mt6795_topckgen_drv); 553 553
+1 -1
drivers/clk/mediatek/clk-mt6795-vdecsys.c
··· 44 44 45 45 static struct platform_driver clk_mt6795_vdecsys_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt6795-vdecsys", 50 50 .of_match_table = of_match_clk_mt6795_vdecsys,
+1 -1
drivers/clk/mediatek/clk-mt6795-vencsys.c
··· 43 43 .of_match_table = of_match_clk_mt6795_vencsys, 44 44 }, 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 }; 48 48 module_platform_driver(clk_mt6795_vencsys_drv); 49 49
+1 -1
drivers/clk/mediatek/clk-mt6797-img.c
··· 43 43 44 44 static struct platform_driver clk_mt6797_img_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt6797-img", 49 49 .of_match_table = of_match_clk_mt6797_img,
+1 -1
drivers/clk/mediatek/clk-mt6797-vdec.c
··· 54 54 55 55 static struct platform_driver clk_mt6797_vdec_drv = { 56 56 .probe = mtk_clk_simple_probe, 57 - .remove = mtk_clk_simple_remove, 57 + .remove_new = mtk_clk_simple_remove, 58 58 .driver = { 59 59 .name = "clk-mt6797-vdec", 60 60 .of_match_table = of_match_clk_mt6797_vdec,
+1 -1
drivers/clk/mediatek/clk-mt6797-venc.c
··· 45 45 46 46 static struct platform_driver clk_mt6797_venc_drv = { 47 47 .probe = mtk_clk_simple_probe, 48 - .remove = mtk_clk_simple_remove, 48 + .remove_new = mtk_clk_simple_remove, 49 49 .driver = { 50 50 .name = "clk-mt6797-venc", 51 51 .of_match_table = of_match_clk_mt6797_venc,
+3 -3
drivers/clk/mediatek/clk-mt7622-aud.c
··· 135 135 return r; 136 136 } 137 137 138 - static int clk_mt7622_aud_remove(struct platform_device *pdev) 138 + static void clk_mt7622_aud_remove(struct platform_device *pdev) 139 139 { 140 140 of_platform_depopulate(&pdev->dev); 141 - return mtk_clk_simple_remove(pdev); 141 + mtk_clk_simple_remove(pdev); 142 142 } 143 143 144 144 static const struct of_device_id of_match_clk_mt7622_aud[] = { ··· 149 149 150 150 static struct platform_driver clk_mt7622_aud_drv = { 151 151 .probe = clk_mt7622_aud_probe, 152 - .remove = clk_mt7622_aud_remove, 152 + .remove_new = clk_mt7622_aud_remove, 153 153 .driver = { 154 154 .name = "clk-mt7622-aud", 155 155 .of_match_table = of_match_clk_mt7622_aud,
+1 -1
drivers/clk/mediatek/clk-mt7622-eth.c
··· 81 81 82 82 static struct platform_driver clk_mt7622_eth_drv = { 83 83 .probe = mtk_clk_simple_probe, 84 - .remove = mtk_clk_simple_remove, 84 + .remove_new = mtk_clk_simple_remove, 85 85 .driver = { 86 86 .name = "clk-mt7622-eth", 87 87 .of_match_table = of_match_clk_mt7622_eth,
+1 -1
drivers/clk/mediatek/clk-mt7622-hif.c
··· 93 93 94 94 static struct platform_driver clk_mt7622_hif_drv = { 95 95 .probe = mtk_clk_simple_probe, 96 - .remove = mtk_clk_simple_remove, 96 + .remove_new = mtk_clk_simple_remove, 97 97 .driver = { 98 98 .name = "clk-mt7622-hif", 99 99 .of_match_table = of_match_clk_mt7622_hif,
+1 -1
drivers/clk/mediatek/clk-mt7622.c
··· 526 526 .of_match_table = of_match_clk_mt7622, 527 527 }, 528 528 .probe = mtk_clk_simple_probe, 529 - .remove = mtk_clk_simple_remove, 529 + .remove_new = mtk_clk_simple_remove, 530 530 }; 531 531 module_platform_driver(clk_mt7622_drv) 532 532
+1 -1
drivers/clk/mediatek/clk-mt7629-hif.c
··· 88 88 89 89 static struct platform_driver clk_mt7629_hif_drv = { 90 90 .probe = mtk_clk_simple_probe, 91 - .remove = mtk_clk_simple_remove, 91 + .remove_new = mtk_clk_simple_remove, 92 92 .driver = { 93 93 .name = "clk-mt7629-hif", 94 94 .of_match_table = of_match_clk_mt7629_hif,
+1 -1
drivers/clk/mediatek/clk-mt7981-eth.c
··· 109 109 110 110 static struct platform_driver clk_mt7981_eth_drv = { 111 111 .probe = mtk_clk_simple_probe, 112 - .remove = mtk_clk_simple_remove, 112 + .remove_new = mtk_clk_simple_remove, 113 113 .driver = { 114 114 .name = "clk-mt7981-eth", 115 115 .of_match_table = of_match_clk_mt7981_eth,
+1 -1
drivers/clk/mediatek/clk-mt7981-infracfg.c
··· 199 199 200 200 static struct platform_driver clk_mt7981_infracfg_drv = { 201 201 .probe = mtk_clk_simple_probe, 202 - .remove = mtk_clk_simple_remove, 202 + .remove_new = mtk_clk_simple_remove, 203 203 .driver = { 204 204 .name = "clk-mt7981-infracfg", 205 205 .of_match_table = of_match_clk_mt7981_infracfg,
+1 -1
drivers/clk/mediatek/clk-mt7981-topckgen.c
··· 414 414 415 415 static struct platform_driver clk_mt7981_topckgen_drv = { 416 416 .probe = mtk_clk_simple_probe, 417 - .remove = mtk_clk_simple_remove, 417 + .remove_new = mtk_clk_simple_remove, 418 418 .driver = { 419 419 .name = "clk-mt7981-topckgen", 420 420 .of_match_table = of_match_clk_mt7981_topckgen,
+1 -1
drivers/clk/mediatek/clk-mt7986-eth.c
··· 94 94 .of_match_table = of_match_clk_mt7986_eth, 95 95 }, 96 96 .probe = mtk_clk_simple_probe, 97 - .remove = mtk_clk_simple_remove, 97 + .remove_new = mtk_clk_simple_remove, 98 98 }; 99 99 module_platform_driver(clk_mt7986_eth_drv); 100 100
+1 -1
drivers/clk/mediatek/clk-mt7986-infracfg.c
··· 179 179 .of_match_table = of_match_clk_mt7986_infracfg, 180 180 }, 181 181 .probe = mtk_clk_simple_probe, 182 - .remove = mtk_clk_simple_remove, 182 + .remove_new = mtk_clk_simple_remove, 183 183 }; 184 184 module_platform_driver(clk_mt7986_infracfg_drv); 185 185
+1 -1
drivers/clk/mediatek/clk-mt7986-topckgen.c
··· 308 308 309 309 static struct platform_driver clk_mt7986_topckgen_drv = { 310 310 .probe = mtk_clk_simple_probe, 311 - .remove = mtk_clk_simple_remove, 311 + .remove_new = mtk_clk_simple_remove, 312 312 .driver = { 313 313 .name = "clk-mt7986-topckgen", 314 314 .of_match_table = of_match_clk_mt7986_topckgen,
+1 -1
drivers/clk/mediatek/clk-mt8135.c
··· 558 558 .of_match_table = of_match_clk_mt8135, 559 559 }, 560 560 .probe = mtk_clk_simple_probe, 561 - .remove = mtk_clk_simple_remove, 561 + .remove_new = mtk_clk_simple_remove, 562 562 }; 563 563 module_platform_driver(clk_mt8135_drv); 564 564
+1 -1
drivers/clk/mediatek/clk-mt8167-aud.c
··· 56 56 57 57 static struct platform_driver clk_mt8167_audsys_drv = { 58 58 .probe = mtk_clk_simple_probe, 59 - .remove = mtk_clk_simple_remove, 59 + .remove_new = mtk_clk_simple_remove, 60 60 .driver = { 61 61 .name = "clk-mt8167-audsys", 62 62 .of_match_table = of_match_clk_mt8167_audsys,
+1 -1
drivers/clk/mediatek/clk-mt8167-img.c
··· 48 48 49 49 static struct platform_driver clk_mt8167_imgsys_drv = { 50 50 .probe = mtk_clk_simple_probe, 51 - .remove = mtk_clk_simple_remove, 51 + .remove_new = mtk_clk_simple_remove, 52 52 .driver = { 53 53 .name = "clk-mt8167-imgsys", 54 54 .of_match_table = of_match_clk_mt8167_imgsys,
+1 -1
drivers/clk/mediatek/clk-mt8167-mfgcfg.c
··· 46 46 47 47 static struct platform_driver clk_mt8167_mfgcfg_drv = { 48 48 .probe = mtk_clk_simple_probe, 49 - .remove = mtk_clk_simple_remove, 49 + .remove_new = mtk_clk_simple_remove, 50 50 .driver = { 51 51 .name = "clk-mt8167-mfgcfg", 52 52 .of_match_table = of_match_clk_mt8167_mfgcfg,
+1 -1
drivers/clk/mediatek/clk-mt8167-vdec.c
··· 55 55 56 56 static struct platform_driver clk_mt8167_vdec_drv = { 57 57 .probe = mtk_clk_simple_probe, 58 - .remove = mtk_clk_simple_remove, 58 + .remove_new = mtk_clk_simple_remove, 59 59 .driver = { 60 60 .name = "clk-mt8167-vdecsys", 61 61 .of_match_table = of_match_clk_mt8167_vdec,
+1 -1
drivers/clk/mediatek/clk-mt8167.c
··· 887 887 888 888 static struct platform_driver clk_mt8167_drv = { 889 889 .probe = mtk_clk_simple_probe, 890 - .remove = mtk_clk_simple_remove, 890 + .remove_new = mtk_clk_simple_remove, 891 891 .driver = { 892 892 .name = "clk-mt8167", 893 893 .of_match_table = of_match_clk_mt8167,
+1 -1
drivers/clk/mediatek/clk-mt8173-img.c
··· 44 44 45 45 static struct platform_driver clk_mt8173_vdecsys_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt8173-imgsys", 50 50 .of_match_table = of_match_clk_mt8173_imgsys,
+1 -1
drivers/clk/mediatek/clk-mt8173-pericfg.c
··· 115 115 .of_match_table = of_match_clk_mt8173_pericfg, 116 116 }, 117 117 .probe = mtk_clk_simple_probe, 118 - .remove = mtk_clk_simple_remove, 118 + .remove_new = mtk_clk_simple_remove, 119 119 }; 120 120 module_platform_driver(clk_mt8173_pericfg_drv); 121 121
+1 -1
drivers/clk/mediatek/clk-mt8173-topckgen.c
··· 646 646 .of_match_table = of_match_clk_mt8173_topckgen, 647 647 }, 648 648 .probe = mtk_clk_simple_probe, 649 - .remove = mtk_clk_simple_remove, 649 + .remove_new = mtk_clk_simple_remove, 650 650 }; 651 651 module_platform_driver(clk_mt8173_topckgen_drv); 652 652
+1 -1
drivers/clk/mediatek/clk-mt8173-vdecsys.c
··· 46 46 47 47 static struct platform_driver clk_mt8173_vdecsys_drv = { 48 48 .probe = mtk_clk_simple_probe, 49 - .remove = mtk_clk_simple_remove, 49 + .remove_new = mtk_clk_simple_remove, 50 50 .driver = { 51 51 .name = "clk-mt8173-vdecsys", 52 52 .of_match_table = of_match_clk_mt8173_vdecsys,
+1 -1
drivers/clk/mediatek/clk-mt8173-vencsys.c
··· 57 57 .of_match_table = of_match_clk_mt8173_vencsys, 58 58 }, 59 59 .probe = mtk_clk_simple_probe, 60 - .remove = mtk_clk_simple_remove, 60 + .remove_new = mtk_clk_simple_remove, 61 61 }; 62 62 module_platform_driver(clk_mt8173_vencsys_drv); 63 63
+3 -3
drivers/clk/mediatek/clk-mt8183-audio.c
··· 87 87 return r; 88 88 } 89 89 90 - static int clk_mt8183_audio_remove(struct platform_device *pdev) 90 + static void clk_mt8183_audio_remove(struct platform_device *pdev) 91 91 { 92 92 of_platform_depopulate(&pdev->dev); 93 - return mtk_clk_simple_remove(pdev); 93 + mtk_clk_simple_remove(pdev); 94 94 } 95 95 96 96 static const struct of_device_id of_match_clk_mt8183_audio[] = { ··· 101 101 102 102 static struct platform_driver clk_mt8183_audio_drv = { 103 103 .probe = clk_mt8183_audio_probe, 104 - .remove = clk_mt8183_audio_remove, 104 + .remove_new = clk_mt8183_audio_remove, 105 105 .driver = { 106 106 .name = "clk-mt8183-audio", 107 107 .of_match_table = of_match_clk_mt8183_audio,
+1 -1
drivers/clk/mediatek/clk-mt8183-cam.c
··· 51 51 52 52 static struct platform_driver clk_mt8183_cam_drv = { 53 53 .probe = mtk_clk_simple_probe, 54 - .remove = mtk_clk_simple_remove, 54 + .remove_new = mtk_clk_simple_remove, 55 55 .driver = { 56 56 .name = "clk-mt8183-cam", 57 57 .of_match_table = of_match_clk_mt8183_cam,
+1 -1
drivers/clk/mediatek/clk-mt8183-img.c
··· 51 51 52 52 static struct platform_driver clk_mt8183_img_drv = { 53 53 .probe = mtk_clk_simple_probe, 54 - .remove = mtk_clk_simple_remove, 54 + .remove_new = mtk_clk_simple_remove, 55 55 .driver = { 56 56 .name = "clk-mt8183-img", 57 57 .of_match_table = of_match_clk_mt8183_img,
+1 -1
drivers/clk/mediatek/clk-mt8183-ipu0.c
··· 44 44 45 45 static struct platform_driver clk_mt8183_ipu_core0_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt8183-ipu_core0", 50 50 .of_match_table = of_match_clk_mt8183_ipu_core0,
+1 -1
drivers/clk/mediatek/clk-mt8183-ipu1.c
··· 44 44 45 45 static struct platform_driver clk_mt8183_ipu_core1_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt8183-ipu_core1", 50 50 .of_match_table = of_match_clk_mt8183_ipu_core1,
+1 -1
drivers/clk/mediatek/clk-mt8183-ipu_adl.c
··· 42 42 43 43 static struct platform_driver clk_mt8183_ipu_adl_drv = { 44 44 .probe = mtk_clk_simple_probe, 45 - .remove = mtk_clk_simple_remove, 45 + .remove_new = mtk_clk_simple_remove, 46 46 .driver = { 47 47 .name = "clk-mt8183-ipu_adl", 48 48 .of_match_table = of_match_clk_mt8183_ipu_adl,
+1 -1
drivers/clk/mediatek/clk-mt8183-ipu_conn.c
··· 111 111 112 112 static struct platform_driver clk_mt8183_ipu_conn_drv = { 113 113 .probe = mtk_clk_simple_probe, 114 - .remove = mtk_clk_simple_remove, 114 + .remove_new = mtk_clk_simple_remove, 115 115 .driver = { 116 116 .name = "clk-mt8183-ipu_conn", 117 117 .of_match_table = of_match_clk_mt8183_ipu_conn,
+1 -1
drivers/clk/mediatek/clk-mt8183-mfgcfg.c
··· 43 43 44 44 static struct platform_driver clk_mt8183_mfg_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt8183-mfg", 49 49 .of_match_table = of_match_clk_mt8183_mfg,
+1 -1
drivers/clk/mediatek/clk-mt8183-vdec.c
··· 55 55 56 56 static struct platform_driver clk_mt8183_vdec_drv = { 57 57 .probe = mtk_clk_simple_probe, 58 - .remove = mtk_clk_simple_remove, 58 + .remove_new = mtk_clk_simple_remove, 59 59 .driver = { 60 60 .name = "clk-mt8183-vdec", 61 61 .of_match_table = of_match_clk_mt8183_vdec,
+1 -1
drivers/clk/mediatek/clk-mt8183-venc.c
··· 47 47 48 48 static struct platform_driver clk_mt8183_venc_drv = { 49 49 .probe = mtk_clk_simple_probe, 50 - .remove = mtk_clk_simple_remove, 50 + .remove_new = mtk_clk_simple_remove, 51 51 .driver = { 52 52 .name = "clk-mt8183-venc", 53 53 .of_match_table = of_match_clk_mt8183_venc,
+1 -1
drivers/clk/mediatek/clk-mt8183.c
··· 872 872 873 873 static struct platform_driver clk_mt8183_drv = { 874 874 .probe = mtk_clk_simple_probe, 875 - .remove = mtk_clk_simple_remove, 875 + .remove_new = mtk_clk_simple_remove, 876 876 .driver = { 877 877 .name = "clk-mt8183", 878 878 .of_match_table = of_match_clk_mt8183,
+1 -1
drivers/clk/mediatek/clk-mt8186-cam.c
··· 82 82 83 83 static struct platform_driver clk_mt8186_cam_drv = { 84 84 .probe = mtk_clk_simple_probe, 85 - .remove = mtk_clk_simple_remove, 85 + .remove_new = mtk_clk_simple_remove, 86 86 .driver = { 87 87 .name = "clk-mt8186-cam", 88 88 .of_match_table = of_match_clk_mt8186_cam,
+1 -1
drivers/clk/mediatek/clk-mt8186-img.c
··· 60 60 61 61 static struct platform_driver clk_mt8186_img_drv = { 62 62 .probe = mtk_clk_simple_probe, 63 - .remove = mtk_clk_simple_remove, 63 + .remove_new = mtk_clk_simple_remove, 64 64 .driver = { 65 65 .name = "clk-mt8186-img", 66 66 .of_match_table = of_match_clk_mt8186_img,
+1 -1
drivers/clk/mediatek/clk-mt8186-imp_iic_wrap.c
··· 59 59 60 60 static struct platform_driver clk_mt8186_imp_iic_wrap_drv = { 61 61 .probe = mtk_clk_simple_probe, 62 - .remove = mtk_clk_simple_remove, 62 + .remove_new = mtk_clk_simple_remove, 63 63 .driver = { 64 64 .name = "clk-mt8186-imp_iic_wrap", 65 65 .of_match_table = of_match_clk_mt8186_imp_iic_wrap,
+1 -1
drivers/clk/mediatek/clk-mt8186-infra_ao.c
··· 231 231 232 232 static struct platform_driver clk_mt8186_infra_ao_drv = { 233 233 .probe = mtk_clk_simple_probe, 234 - .remove = mtk_clk_simple_remove, 234 + .remove_new = mtk_clk_simple_remove, 235 235 .driver = { 236 236 .name = "clk-mt8186-infra-ao", 237 237 .of_match_table = of_match_clk_mt8186_infra_ao,
+1 -1
drivers/clk/mediatek/clk-mt8186-ipe.c
··· 47 47 48 48 static struct platform_driver clk_mt8186_ipe_drv = { 49 49 .probe = mtk_clk_simple_probe, 50 - .remove = mtk_clk_simple_remove, 50 + .remove_new = mtk_clk_simple_remove, 51 51 .driver = { 52 52 .name = "clk-mt8186-ipe", 53 53 .of_match_table = of_match_clk_mt8186_ipe,
+1 -1
drivers/clk/mediatek/clk-mt8186-mcu.c
··· 60 60 .of_match_table = of_match_clk_mt8186_mcu, 61 61 }, 62 62 .probe = mtk_clk_simple_probe, 63 - .remove = mtk_clk_simple_remove, 63 + .remove_new = mtk_clk_simple_remove, 64 64 }; 65 65 module_platform_driver(clk_mt8186_mcu_drv); 66 66
+1 -1
drivers/clk/mediatek/clk-mt8186-mdp.c
··· 72 72 73 73 static struct platform_driver clk_mt8186_mdp_drv = { 74 74 .probe = mtk_clk_simple_probe, 75 - .remove = mtk_clk_simple_remove, 75 + .remove_new = mtk_clk_simple_remove, 76 76 .driver = { 77 77 .name = "clk-mt8186-mdp", 78 78 .of_match_table = of_match_clk_mt8186_mdp,
+1 -1
drivers/clk/mediatek/clk-mt8186-mfg.c
··· 41 41 42 42 static struct platform_driver clk_mt8186_mfg_drv = { 43 43 .probe = mtk_clk_simple_probe, 44 - .remove = mtk_clk_simple_remove, 44 + .remove_new = mtk_clk_simple_remove, 45 45 .driver = { 46 46 .name = "clk-mt8186-mfg", 47 47 .of_match_table = of_match_clk_mt8186_mfg,
+1 -1
drivers/clk/mediatek/clk-mt8186-topckgen.c
··· 725 725 726 726 static struct platform_driver clk_mt8186_topck_drv = { 727 727 .probe = mtk_clk_simple_probe, 728 - .remove = mtk_clk_simple_remove, 728 + .remove_new = mtk_clk_simple_remove, 729 729 .driver = { 730 730 .name = "clk-mt8186-topck", 731 731 .of_match_table = of_match_clk_mt8186_topck,
+1 -1
drivers/clk/mediatek/clk-mt8186-vdec.c
··· 80 80 81 81 static struct platform_driver clk_mt8186_vdec_drv = { 82 82 .probe = mtk_clk_simple_probe, 83 - .remove = mtk_clk_simple_remove, 83 + .remove_new = mtk_clk_simple_remove, 84 84 .driver = { 85 85 .name = "clk-mt8186-vdec", 86 86 .of_match_table = of_match_clk_mt8186_vdec,
+1 -1
drivers/clk/mediatek/clk-mt8186-venc.c
··· 43 43 44 44 static struct platform_driver clk_mt8186_venc_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt8186-venc", 49 49 .of_match_table = of_match_clk_mt8186_venc,
+1 -1
drivers/clk/mediatek/clk-mt8186-wpe.c
··· 43 43 44 44 static struct platform_driver clk_mt8186_wpe_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt8186-wpe", 49 49 .of_match_table = of_match_clk_mt8186_wpe,
+1 -1
drivers/clk/mediatek/clk-mt8188-adsp_audio26m.c
··· 40 40 41 41 static struct platform_driver clk_mt8188_adsp_audio26m_drv = { 42 42 .probe = mtk_clk_simple_probe, 43 - .remove = mtk_clk_simple_remove, 43 + .remove_new = mtk_clk_simple_remove, 44 44 .driver = { 45 45 .name = "clk-mt8188-adsp_audio26m", 46 46 .of_match_table = of_match_clk_mt8188_adsp_audio26m,
+1 -1
drivers/clk/mediatek/clk-mt8188-cam.c
··· 109 109 110 110 static struct platform_driver clk_mt8188_cam_drv = { 111 111 .probe = mtk_clk_simple_probe, 112 - .remove = mtk_clk_simple_remove, 112 + .remove_new = mtk_clk_simple_remove, 113 113 .driver = { 114 114 .name = "clk-mt8188-cam", 115 115 .of_match_table = of_match_clk_mt8188_cam,
+1 -1
drivers/clk/mediatek/clk-mt8188-ccu.c
··· 39 39 40 40 static struct platform_driver clk_mt8188_ccu_drv = { 41 41 .probe = mtk_clk_simple_probe, 42 - .remove = mtk_clk_simple_remove, 42 + .remove_new = mtk_clk_simple_remove, 43 43 .driver = { 44 44 .name = "clk-mt8188-ccu", 45 45 .of_match_table = of_match_clk_mt8188_ccu,
+1 -1
drivers/clk/mediatek/clk-mt8188-img.c
··· 101 101 102 102 static struct platform_driver clk_mt8188_imgsys_main_drv = { 103 103 .probe = mtk_clk_simple_probe, 104 - .remove = mtk_clk_simple_remove, 104 + .remove_new = mtk_clk_simple_remove, 105 105 .driver = { 106 106 .name = "clk-mt8188-imgsys_main", 107 107 .of_match_table = of_match_clk_mt8188_imgsys_main,
+1 -1
drivers/clk/mediatek/clk-mt8188-imp_iic_wrap.c
··· 71 71 72 72 static struct platform_driver clk_mt8188_imp_iic_wrap_drv = { 73 73 .probe = mtk_clk_simple_probe, 74 - .remove = mtk_clk_simple_remove, 74 + .remove_new = mtk_clk_simple_remove, 75 75 .driver = { 76 76 .name = "clk-mt8188-imp_iic_wrap", 77 77 .of_match_table = of_match_clk_mt8188_imp_iic_wrap,
+1 -1
drivers/clk/mediatek/clk-mt8188-infra_ao.c
··· 189 189 190 190 static struct platform_driver clk_mt8188_infra_ao_drv = { 191 191 .probe = mtk_clk_simple_probe, 192 - .remove = mtk_clk_simple_remove, 192 + .remove_new = mtk_clk_simple_remove, 193 193 .driver = { 194 194 .name = "clk-mt8188-infra_ao", 195 195 .of_match_table = of_match_clk_mt8188_infra_ao,
+1 -1
drivers/clk/mediatek/clk-mt8188-ipe.c
··· 41 41 42 42 static struct platform_driver clk_mt8188_ipe_drv = { 43 43 .probe = mtk_clk_simple_probe, 44 - .remove = mtk_clk_simple_remove, 44 + .remove_new = mtk_clk_simple_remove, 45 45 .driver = { 46 46 .name = "clk-mt8188-ipe", 47 47 .of_match_table = of_match_clk_mt8188_ipe,
+1 -1
drivers/clk/mediatek/clk-mt8188-mfg.c
··· 38 38 39 39 static struct platform_driver clk_mt8188_mfgcfg_drv = { 40 40 .probe = mtk_clk_simple_probe, 41 - .remove = mtk_clk_simple_remove, 41 + .remove_new = mtk_clk_simple_remove, 42 42 .driver = { 43 43 .name = "clk-mt8188-mfgcfg", 44 44 .of_match_table = of_match_clk_mt8188_mfgcfg,
+1 -1
drivers/clk/mediatek/clk-mt8188-peri_ao.c
··· 49 49 50 50 static struct platform_driver clk_mt8188_peri_ao_drv = { 51 51 .probe = mtk_clk_simple_probe, 52 - .remove = mtk_clk_simple_remove, 52 + .remove_new = mtk_clk_simple_remove, 53 53 .driver = { 54 54 .name = "clk-mt8188-peri_ao", 55 55 .of_match_table = of_match_clk_mt8188_peri_ao,
+1 -1
drivers/clk/mediatek/clk-mt8188-vdec.c
··· 81 81 82 82 static struct platform_driver clk_mt8188_vdec_drv = { 83 83 .probe = mtk_clk_simple_probe, 84 - .remove = mtk_clk_simple_remove, 84 + .remove_new = mtk_clk_simple_remove, 85 85 .driver = { 86 86 .name = "clk-mt8188-vdec", 87 87 .of_match_table = of_match_clk_mt8188_vdec,
+1 -1
drivers/clk/mediatek/clk-mt8188-venc.c
··· 45 45 46 46 static struct platform_driver clk_mt8188_venc1_drv = { 47 47 .probe = mtk_clk_simple_probe, 48 - .remove = mtk_clk_simple_remove, 48 + .remove_new = mtk_clk_simple_remove, 49 49 .driver = { 50 50 .name = "clk-mt8188-venc1", 51 51 .of_match_table = of_match_clk_mt8188_venc1,
+1 -1
drivers/clk/mediatek/clk-mt8188-wpe.c
··· 94 94 95 95 static struct platform_driver clk_mt8188_wpe_drv = { 96 96 .probe = mtk_clk_simple_probe, 97 - .remove = mtk_clk_simple_remove, 97 + .remove_new = mtk_clk_simple_remove, 98 98 .driver = { 99 99 .name = "clk-mt8188-wpe", 100 100 .of_match_table = of_match_clk_mt8188_wpe,
+3 -3
drivers/clk/mediatek/clk-mt8192-aud.c
··· 97 97 return r; 98 98 } 99 99 100 - static int clk_mt8192_aud_remove(struct platform_device *pdev) 100 + static void clk_mt8192_aud_remove(struct platform_device *pdev) 101 101 { 102 102 of_platform_depopulate(&pdev->dev); 103 - return mtk_clk_simple_remove(pdev); 103 + mtk_clk_simple_remove(pdev); 104 104 } 105 105 106 106 static const struct of_device_id of_match_clk_mt8192_aud[] = { ··· 111 111 112 112 static struct platform_driver clk_mt8192_aud_drv = { 113 113 .probe = clk_mt8192_aud_probe, 114 - .remove = clk_mt8192_aud_remove, 114 + .remove_new = clk_mt8192_aud_remove, 115 115 .driver = { 116 116 .name = "clk-mt8192-aud", 117 117 .of_match_table = of_match_clk_mt8192_aud,
+1 -1
drivers/clk/mediatek/clk-mt8192-cam.c
··· 99 99 100 100 static struct platform_driver clk_mt8192_cam_drv = { 101 101 .probe = mtk_clk_simple_probe, 102 - .remove = mtk_clk_simple_remove, 102 + .remove_new = mtk_clk_simple_remove, 103 103 .driver = { 104 104 .name = "clk-mt8192-cam", 105 105 .of_match_table = of_match_clk_mt8192_cam,
+1 -1
drivers/clk/mediatek/clk-mt8192-img.c
··· 62 62 63 63 static struct platform_driver clk_mt8192_img_drv = { 64 64 .probe = mtk_clk_simple_probe, 65 - .remove = mtk_clk_simple_remove, 65 + .remove_new = mtk_clk_simple_remove, 66 66 .driver = { 67 67 .name = "clk-mt8192-img", 68 68 .of_match_table = of_match_clk_mt8192_img,
+1 -1
drivers/clk/mediatek/clk-mt8192-imp_iic_wrap.c
··· 111 111 112 112 static struct platform_driver clk_mt8192_imp_iic_wrap_drv = { 113 113 .probe = mtk_clk_simple_probe, 114 - .remove = mtk_clk_simple_remove, 114 + .remove_new = mtk_clk_simple_remove, 115 115 .driver = { 116 116 .name = "clk-mt8192-imp_iic_wrap", 117 117 .of_match_table = of_match_clk_mt8192_imp_iic_wrap,
+1 -1
drivers/clk/mediatek/clk-mt8192-ipe.c
··· 49 49 50 50 static struct platform_driver clk_mt8192_ipe_drv = { 51 51 .probe = mtk_clk_simple_probe, 52 - .remove = mtk_clk_simple_remove, 52 + .remove_new = mtk_clk_simple_remove, 53 53 .driver = { 54 54 .name = "clk-mt8192-ipe", 55 55 .of_match_table = of_match_clk_mt8192_ipe,
+1 -1
drivers/clk/mediatek/clk-mt8192-mdp.c
··· 74 74 75 75 static struct platform_driver clk_mt8192_mdp_drv = { 76 76 .probe = mtk_clk_simple_probe, 77 - .remove = mtk_clk_simple_remove, 77 + .remove_new = mtk_clk_simple_remove, 78 78 .driver = { 79 79 .name = "clk-mt8192-mdp", 80 80 .of_match_table = of_match_clk_mt8192_mdp,
+1 -1
drivers/clk/mediatek/clk-mt8192-mfg.c
··· 44 44 45 45 static struct platform_driver clk_mt8192_mfg_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt8192-mfg", 50 50 .of_match_table = of_match_clk_mt8192_mfg,
+1 -1
drivers/clk/mediatek/clk-mt8192-msdc.c
··· 56 56 57 57 static struct platform_driver clk_mt8192_msdc_drv = { 58 58 .probe = mtk_clk_simple_probe, 59 - .remove = mtk_clk_simple_remove, 59 + .remove_new = mtk_clk_simple_remove, 60 60 .driver = { 61 61 .name = "clk-mt8192-msdc", 62 62 .of_match_table = of_match_clk_mt8192_msdc,
+1 -1
drivers/clk/mediatek/clk-mt8192-scp_adsp.c
··· 42 42 43 43 static struct platform_driver clk_mt8192_scp_adsp_drv = { 44 44 .probe = mtk_clk_simple_probe, 45 - .remove = mtk_clk_simple_remove, 45 + .remove_new = mtk_clk_simple_remove, 46 46 .driver = { 47 47 .name = "clk-mt8192-scp_adsp", 48 48 .of_match_table = of_match_clk_mt8192_scp_adsp,
+1 -1
drivers/clk/mediatek/clk-mt8192-vdec.c
··· 86 86 87 87 static struct platform_driver clk_mt8192_vdec_drv = { 88 88 .probe = mtk_clk_simple_probe, 89 - .remove = mtk_clk_simple_remove, 89 + .remove_new = mtk_clk_simple_remove, 90 90 .driver = { 91 91 .name = "clk-mt8192-vdec", 92 92 .of_match_table = of_match_clk_mt8192_vdec,
+1 -1
drivers/clk/mediatek/clk-mt8192-venc.c
··· 45 45 46 46 static struct platform_driver clk_mt8192_venc_drv = { 47 47 .probe = mtk_clk_simple_probe, 48 - .remove = mtk_clk_simple_remove, 48 + .remove_new = mtk_clk_simple_remove, 49 49 .driver = { 50 50 .name = "clk-mt8192-venc", 51 51 .of_match_table = of_match_clk_mt8192_venc,
+1 -1
drivers/clk/mediatek/clk-mt8192.c
··· 1027 1027 .of_match_table = of_match_clk_mt8192, 1028 1028 }, 1029 1029 .probe = mtk_clk_simple_probe, 1030 - .remove = mtk_clk_simple_remove, 1030 + .remove_new = mtk_clk_simple_remove, 1031 1031 }; 1032 1032 module_platform_driver(clk_mt8192_drv); 1033 1033 MODULE_LICENSE("GPL");
+1 -1
drivers/clk/mediatek/clk-mt8195-cam.c
··· 135 135 136 136 static struct platform_driver clk_mt8195_cam_drv = { 137 137 .probe = mtk_clk_simple_probe, 138 - .remove = mtk_clk_simple_remove, 138 + .remove_new = mtk_clk_simple_remove, 139 139 .driver = { 140 140 .name = "clk-mt8195-cam", 141 141 .of_match_table = of_match_clk_mt8195_cam,
+1 -1
drivers/clk/mediatek/clk-mt8195-ccu.c
··· 43 43 44 44 static struct platform_driver clk_mt8195_ccu_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt8195-ccu", 49 49 .of_match_table = of_match_clk_mt8195_ccu,
+1 -1
drivers/clk/mediatek/clk-mt8195-img.c
··· 89 89 90 90 static struct platform_driver clk_mt8195_img_drv = { 91 91 .probe = mtk_clk_simple_probe, 92 - .remove = mtk_clk_simple_remove, 92 + .remove_new = mtk_clk_simple_remove, 93 93 .driver = { 94 94 .name = "clk-mt8195-img", 95 95 .of_match_table = of_match_clk_mt8195_img,
+1 -1
drivers/clk/mediatek/clk-mt8195-imp_iic_wrap.c
··· 59 59 60 60 static struct platform_driver clk_mt8195_imp_iic_wrap_drv = { 61 61 .probe = mtk_clk_simple_probe, 62 - .remove = mtk_clk_simple_remove, 62 + .remove_new = mtk_clk_simple_remove, 63 63 .driver = { 64 64 .name = "clk-mt8195-imp_iic_wrap", 65 65 .of_match_table = of_match_clk_mt8195_imp_iic_wrap,
+1 -1
drivers/clk/mediatek/clk-mt8195-infra_ao.c
··· 233 233 234 234 static struct platform_driver clk_mt8195_infra_ao_drv = { 235 235 .probe = mtk_clk_simple_probe, 236 - .remove = mtk_clk_simple_remove, 236 + .remove_new = mtk_clk_simple_remove, 237 237 .driver = { 238 238 .name = "clk-mt8195-infra_ao", 239 239 .of_match_table = of_match_clk_mt8195_infra_ao,
+1 -1
drivers/clk/mediatek/clk-mt8195-ipe.c
··· 44 44 45 45 static struct platform_driver clk_mt8195_ipe_drv = { 46 46 .probe = mtk_clk_simple_probe, 47 - .remove = mtk_clk_simple_remove, 47 + .remove_new = mtk_clk_simple_remove, 48 48 .driver = { 49 49 .name = "clk-mt8195-ipe", 50 50 .of_match_table = of_match_clk_mt8195_ipe,
+1 -1
drivers/clk/mediatek/clk-mt8195-mfg.c
··· 42 42 43 43 static struct platform_driver clk_mt8195_mfg_drv = { 44 44 .probe = mtk_clk_simple_probe, 45 - .remove = mtk_clk_simple_remove, 45 + .remove_new = mtk_clk_simple_remove, 46 46 .driver = { 47 47 .name = "clk-mt8195-mfg", 48 48 .of_match_table = of_match_clk_mt8195_mfg,
+1 -1
drivers/clk/mediatek/clk-mt8195-peri_ao.c
··· 55 55 56 56 static struct platform_driver clk_mt8195_peri_ao_drv = { 57 57 .probe = mtk_clk_simple_probe, 58 - .remove = mtk_clk_simple_remove, 58 + .remove_new = mtk_clk_simple_remove, 59 59 .driver = { 60 60 .name = "clk-mt8195-peri_ao", 61 61 .of_match_table = of_match_clk_mt8195_peri_ao,
+1 -1
drivers/clk/mediatek/clk-mt8195-scp_adsp.c
··· 40 40 41 41 static struct platform_driver clk_mt8195_scp_adsp_drv = { 42 42 .probe = mtk_clk_simple_probe, 43 - .remove = mtk_clk_simple_remove, 43 + .remove_new = mtk_clk_simple_remove, 44 44 .driver = { 45 45 .name = "clk-mt8195-scp_adsp", 46 46 .of_match_table = of_match_clk_mt8195_scp_adsp,
+1 -1
drivers/clk/mediatek/clk-mt8195-vdec.c
··· 97 97 98 98 static struct platform_driver clk_mt8195_vdec_drv = { 99 99 .probe = mtk_clk_simple_probe, 100 - .remove = mtk_clk_simple_remove, 100 + .remove_new = mtk_clk_simple_remove, 101 101 .driver = { 102 102 .name = "clk-mt8195-vdec", 103 103 .of_match_table = of_match_clk_mt8195_vdec,
+1 -1
drivers/clk/mediatek/clk-mt8195-venc.c
··· 62 62 63 63 static struct platform_driver clk_mt8195_venc_drv = { 64 64 .probe = mtk_clk_simple_probe, 65 - .remove = mtk_clk_simple_remove, 65 + .remove_new = mtk_clk_simple_remove, 66 66 .driver = { 67 67 .name = "clk-mt8195-venc", 68 68 .of_match_table = of_match_clk_mt8195_venc,
+1 -1
drivers/clk/mediatek/clk-mt8195-wpe.c
··· 136 136 137 137 static struct platform_driver clk_mt8195_wpe_drv = { 138 138 .probe = mtk_clk_simple_probe, 139 - .remove = mtk_clk_simple_remove, 139 + .remove_new = mtk_clk_simple_remove, 140 140 .driver = { 141 141 .name = "clk-mt8195-wpe", 142 142 .of_match_table = of_match_clk_mt8195_wpe,
+1 -1
drivers/clk/mediatek/clk-mt8365-apu.c
··· 46 46 47 47 static struct platform_driver clk_mt8365_apu_drv = { 48 48 .probe = mtk_clk_simple_probe, 49 - .remove = mtk_clk_simple_remove, 49 + .remove_new = mtk_clk_simple_remove, 50 50 .driver = { 51 51 .name = "clk-mt8365-apu", 52 52 .of_match_table = of_match_clk_mt8365_apu,
+1 -1
drivers/clk/mediatek/clk-mt8365-cam.c
··· 48 48 49 49 static struct platform_driver clk_mt8365_cam_drv = { 50 50 .probe = mtk_clk_simple_probe, 51 - .remove = mtk_clk_simple_remove, 51 + .remove_new = mtk_clk_simple_remove, 52 52 .driver = { 53 53 .name = "clk-mt8365-cam", 54 54 .of_match_table = of_match_clk_mt8365_cam,
+1 -1
drivers/clk/mediatek/clk-mt8365-mfg.c
··· 54 54 55 55 static struct platform_driver clk_mt8365_mfg_drv = { 56 56 .probe = mtk_clk_simple_probe, 57 - .remove = mtk_clk_simple_remove, 57 + .remove_new = mtk_clk_simple_remove, 58 58 .driver = { 59 59 .name = "clk-mt8365-mfg", 60 60 .of_match_table = of_match_clk_mt8365_mfg,
+1 -1
drivers/clk/mediatek/clk-mt8365-vdec.c
··· 54 54 55 55 static struct platform_driver clk_mt8365_vdec_drv = { 56 56 .probe = mtk_clk_simple_probe, 57 - .remove = mtk_clk_simple_remove, 57 + .remove_new = mtk_clk_simple_remove, 58 58 .driver = { 59 59 .name = "clk-mt8365-vdec", 60 60 .of_match_table = of_match_clk_mt8365_vdec,
+1 -1
drivers/clk/mediatek/clk-mt8365-venc.c
··· 43 43 44 44 static struct platform_driver clk_mt8365_venc_drv = { 45 45 .probe = mtk_clk_simple_probe, 46 - .remove = mtk_clk_simple_remove, 46 + .remove_new = mtk_clk_simple_remove, 47 47 .driver = { 48 48 .name = "clk-mt8365-venc", 49 49 .of_match_table = of_match_clk_mt8365_venc,
+1 -1
drivers/clk/mediatek/clk-mt8365.c
··· 799 799 .of_match_table = of_match_clk_mt8365, 800 800 }, 801 801 .probe = mtk_clk_simple_probe, 802 - .remove = mtk_clk_simple_remove, 802 + .remove_new = mtk_clk_simple_remove, 803 803 }; 804 804 module_platform_driver(clk_mt8365_drv); 805 805 MODULE_LICENSE("GPL");
+1 -1
drivers/clk/mediatek/clk-mt8516-aud.c
··· 55 55 56 56 static struct platform_driver clk_mt8516_aud_drv = { 57 57 .probe = mtk_clk_simple_probe, 58 - .remove = mtk_clk_simple_remove, 58 + .remove_new = mtk_clk_simple_remove, 59 59 .driver = { 60 60 .name = "clk-mt8516-aud", 61 61 .of_match_table = of_match_clk_mt8516_aud,
+1 -1
drivers/clk/mediatek/clk-mt8516.c
··· 669 669 670 670 static struct platform_driver clk_mt8516_drv = { 671 671 .probe = mtk_clk_simple_probe, 672 - .remove = mtk_clk_simple_remove, 672 + .remove_new = mtk_clk_simple_remove, 673 673 .driver = { 674 674 .name = "clk-mt8516", 675 675 .of_match_table = of_match_clk_mt8516,
+6 -6
drivers/clk/mediatek/clk-mtk.c
··· 604 604 return r; 605 605 } 606 606 607 - static int __mtk_clk_simple_remove(struct platform_device *pdev, 607 + static void __mtk_clk_simple_remove(struct platform_device *pdev, 608 608 struct device_node *node) 609 609 { 610 610 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); ··· 629 629 mtk_clk_unregister_fixed_clks(mcd->fixed_clks, 630 630 mcd->num_fixed_clks, clk_data); 631 631 mtk_free_clk_data(clk_data); 632 - 633 - return 0; 634 632 } 635 633 636 634 int mtk_clk_pdev_probe(struct platform_device *pdev) ··· 653 655 struct device *dev = &pdev->dev; 654 656 struct device_node *node = dev->parent->of_node; 655 657 656 - return __mtk_clk_simple_remove(pdev, node); 658 + __mtk_clk_simple_remove(pdev, node); 659 + 660 + return 0; 657 661 } 658 662 EXPORT_SYMBOL_GPL(mtk_clk_pdev_remove); 659 663 660 - int mtk_clk_simple_remove(struct platform_device *pdev) 664 + void mtk_clk_simple_remove(struct platform_device *pdev) 661 665 { 662 - return __mtk_clk_simple_remove(pdev, pdev->dev.of_node); 666 + __mtk_clk_simple_remove(pdev, pdev->dev.of_node); 663 667 } 664 668 EXPORT_SYMBOL_GPL(mtk_clk_simple_remove); 665 669
+1 -1
drivers/clk/mediatek/clk-mtk.h
··· 242 242 int mtk_clk_pdev_probe(struct platform_device *pdev); 243 243 int mtk_clk_pdev_remove(struct platform_device *pdev); 244 244 int mtk_clk_simple_probe(struct platform_device *pdev); 245 - int mtk_clk_simple_remove(struct platform_device *pdev); 245 + void mtk_clk_simple_remove(struct platform_device *pdev); 246 246 247 247 #endif /* __DRV_CLK_MTK_H */