Commit 61ca6ee7 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Stephen Boyd

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230430190233.878921-2-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent ac9a7868
...@@ -150,15 +150,15 @@ static int clk_mt2701_aud_probe(struct platform_device *pdev) ...@@ -150,15 +150,15 @@ static int clk_mt2701_aud_probe(struct platform_device *pdev)
return r; 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); of_platform_depopulate(&pdev->dev);
return mtk_clk_simple_remove(pdev); mtk_clk_simple_remove(pdev);
} }
static struct platform_driver clk_mt2701_aud_drv = { static struct platform_driver clk_mt2701_aud_drv = {
.probe = clk_mt2701_aud_probe, .probe = clk_mt2701_aud_probe,
.remove = clk_mt2701_aud_remove, .remove_new = clk_mt2701_aud_remove,
.driver = { .driver = {
.name = "clk-mt2701-aud", .name = "clk-mt2701-aud",
.of_match_table = of_match_clk_mt2701_aud, .of_match_table = of_match_clk_mt2701_aud,
......
...@@ -99,7 +99,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_bdp); ...@@ -99,7 +99,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_bdp);
static struct platform_driver clk_mt2701_bdp_drv = { static struct platform_driver clk_mt2701_bdp_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2701-bdp", .name = "clk-mt2701-bdp",
.of_match_table = of_match_clk_mt2701_bdp, .of_match_table = of_match_clk_mt2701_bdp,
......
...@@ -53,7 +53,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_eth); ...@@ -53,7 +53,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_eth);
static struct platform_driver clk_mt2701_eth_drv = { static struct platform_driver clk_mt2701_eth_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2701-eth", .name = "clk-mt2701-eth",
.of_match_table = of_match_clk_mt2701_eth, .of_match_table = of_match_clk_mt2701_eth,
......
...@@ -52,7 +52,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_g3d); ...@@ -52,7 +52,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_g3d);
static struct platform_driver clk_mt2701_g3d_drv = { static struct platform_driver clk_mt2701_g3d_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2701-g3d", .name = "clk-mt2701-g3d",
.of_match_table = of_match_clk_mt2701_g3d, .of_match_table = of_match_clk_mt2701_g3d,
......
...@@ -50,7 +50,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_hif); ...@@ -50,7 +50,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_hif);
static struct platform_driver clk_mt2701_hif_drv = { static struct platform_driver clk_mt2701_hif_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2701-hif", .name = "clk-mt2701-hif",
.of_match_table = of_match_clk_mt2701_hif, .of_match_table = of_match_clk_mt2701_hif,
......
...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_img); ...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_img);
static struct platform_driver clk_mt2701_img_drv = { static struct platform_driver clk_mt2701_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2701-img", .name = "clk-mt2701-img",
.of_match_table = of_match_clk_mt2701_img, .of_match_table = of_match_clk_mt2701_img,
......
...@@ -52,7 +52,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_vdec); ...@@ -52,7 +52,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_vdec);
static struct platform_driver clk_mt2701_vdec_drv = { static struct platform_driver clk_mt2701_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2701-vdec", .name = "clk-mt2701-vdec",
.of_match_table = of_match_clk_mt2701_vdec, .of_match_table = of_match_clk_mt2701_vdec,
......
...@@ -69,7 +69,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_bdp); ...@@ -69,7 +69,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_bdp);
static struct platform_driver clk_mt2712_bdp_drv = { static struct platform_driver clk_mt2712_bdp_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2712-bdp", .name = "clk-mt2712-bdp",
.of_match_table = of_match_clk_mt2712_bdp, .of_match_table = of_match_clk_mt2712_bdp,
......
...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_img); ...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_img);
static struct platform_driver clk_mt2712_img_drv = { static struct platform_driver clk_mt2712_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2712-img", .name = "clk-mt2712-img",
.of_match_table = of_match_clk_mt2712_img, .of_match_table = of_match_clk_mt2712_img,
......
...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_jpgdec); ...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_jpgdec);
static struct platform_driver clk_mt2712_jpgdec_drv = { static struct platform_driver clk_mt2712_jpgdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2712-jpgdec", .name = "clk-mt2712-jpgdec",
.of_match_table = of_match_clk_mt2712_jpgdec, .of_match_table = of_match_clk_mt2712_jpgdec,
......
...@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_mfg); ...@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_mfg);
static struct platform_driver clk_mt2712_mfg_drv = { static struct platform_driver clk_mt2712_mfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2712-mfg", .name = "clk-mt2712-mfg",
.of_match_table = of_match_clk_mt2712_mfg, .of_match_table = of_match_clk_mt2712_mfg,
......
...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_vdec); ...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_vdec);
static struct platform_driver clk_mt2712_vdec_drv = { static struct platform_driver clk_mt2712_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2712-vdec", .name = "clk-mt2712-vdec",
.of_match_table = of_match_clk_mt2712_vdec, .of_match_table = of_match_clk_mt2712_vdec,
......
...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_venc); ...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712_venc);
static struct platform_driver clk_mt2712_venc_drv = { static struct platform_driver clk_mt2712_venc_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2712-venc", .name = "clk-mt2712-venc",
.of_match_table = of_match_clk_mt2712_venc, .of_match_table = of_match_clk_mt2712_venc,
......
...@@ -995,7 +995,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712); ...@@ -995,7 +995,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2712);
static struct platform_driver clk_mt2712_drv = { static struct platform_driver clk_mt2712_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt2712", .name = "clk-mt2712",
.of_match_table = of_match_clk_mt2712, .of_match_table = of_match_clk_mt2712,
......
...@@ -69,7 +69,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_audio); ...@@ -69,7 +69,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_audio);
static struct platform_driver clk_mt6765_audio_drv = { static struct platform_driver clk_mt6765_audio_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6765-audio", .name = "clk-mt6765-audio",
.of_match_table = of_match_clk_mt6765_audio, .of_match_table = of_match_clk_mt6765_audio,
......
...@@ -50,7 +50,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_cam); ...@@ -50,7 +50,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_cam);
static struct platform_driver clk_mt6765_cam_drv = { static struct platform_driver clk_mt6765_cam_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6765-cam", .name = "clk-mt6765-cam",
.of_match_table = of_match_clk_mt6765_cam, .of_match_table = of_match_clk_mt6765_cam,
......
...@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_img); ...@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_img);
static struct platform_driver clk_mt6765_img_drv = { static struct platform_driver clk_mt6765_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6765-img", .name = "clk-mt6765-img",
.of_match_table = of_match_clk_mt6765_img, .of_match_table = of_match_clk_mt6765_img,
......
...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_mipi0a); ...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_mipi0a);
static struct platform_driver clk_mt6765_mipi0a_drv = { static struct platform_driver clk_mt6765_mipi0a_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6765-mipi0a", .name = "clk-mt6765-mipi0a",
.of_match_table = of_match_clk_mt6765_mipi0a, .of_match_table = of_match_clk_mt6765_mipi0a,
......
...@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_mm); ...@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_mm);
static struct platform_driver clk_mt6765_mm_drv = { static struct platform_driver clk_mt6765_mm_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6765-mm", .name = "clk-mt6765-mm",
.of_match_table = of_match_clk_mt6765_mm, .of_match_table = of_match_clk_mt6765_mm,
......
...@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_vcodec); ...@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6765_vcodec);
static struct platform_driver clk_mt6765_vcodec_drv = { static struct platform_driver clk_mt6765_vcodec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6765-vcodec", .name = "clk-mt6765-vcodec",
.of_match_table = of_match_clk_mt6765_vcodec, .of_match_table = of_match_clk_mt6765_vcodec,
......
...@@ -106,7 +106,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_aud); ...@@ -106,7 +106,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_aud);
static struct platform_driver clk_mt6779_aud_drv = { static struct platform_driver clk_mt6779_aud_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-aud", .name = "clk-mt6779-aud",
.of_match_table = of_match_clk_mt6779_aud, .of_match_table = of_match_clk_mt6779_aud,
......
...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_cam); ...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_cam);
static struct platform_driver clk_mt6779_cam_drv = { static struct platform_driver clk_mt6779_cam_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-cam", .name = "clk-mt6779-cam",
.of_match_table = of_match_clk_mt6779_cam, .of_match_table = of_match_clk_mt6779_cam,
......
...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_img); ...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_img);
static struct platform_driver clk_mt6779_img_drv = { static struct platform_driver clk_mt6779_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-img", .name = "clk-mt6779-img",
.of_match_table = of_match_clk_mt6779_img, .of_match_table = of_match_clk_mt6779_img,
......
...@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_ipe); ...@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_ipe);
static struct platform_driver clk_mt6779_ipe_drv = { static struct platform_driver clk_mt6779_ipe_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-ipe", .name = "clk-mt6779-ipe",
.of_match_table = of_match_clk_mt6779_ipe, .of_match_table = of_match_clk_mt6779_ipe,
......
...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_mfg); ...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_mfg);
static struct platform_driver clk_mt6779_mfg_drv = { static struct platform_driver clk_mt6779_mfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-mfg", .name = "clk-mt6779-mfg",
.of_match_table = of_match_clk_mt6779_mfg, .of_match_table = of_match_clk_mt6779_mfg,
......
...@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_vdec); ...@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_vdec);
static struct platform_driver clk_mt6779_vdec_drv = { static struct platform_driver clk_mt6779_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-vdec", .name = "clk-mt6779-vdec",
.of_match_table = of_match_clk_mt6779_vdec, .of_match_table = of_match_clk_mt6779_vdec,
......
...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_venc); ...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779_venc);
static struct platform_driver clk_mt6779_venc_drv = { static struct platform_driver clk_mt6779_venc_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-venc", .name = "clk-mt6779-venc",
.of_match_table = of_match_clk_mt6779_venc, .of_match_table = of_match_clk_mt6779_venc,
......
...@@ -1303,7 +1303,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779); ...@@ -1303,7 +1303,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6779);
static struct platform_driver clk_mt6779_infra_drv = { static struct platform_driver clk_mt6779_infra_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6779-infra", .name = "clk-mt6779-infra",
.of_match_table = of_match_clk_mt6779_infra, .of_match_table = of_match_clk_mt6779_infra,
......
...@@ -43,7 +43,7 @@ static struct platform_driver clk_mt6795_mfg_drv = { ...@@ -43,7 +43,7 @@ static struct platform_driver clk_mt6795_mfg_drv = {
.of_match_table = of_match_clk_mt6795_mfg, .of_match_table = of_match_clk_mt6795_mfg,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt6795_mfg_drv); module_platform_driver(clk_mt6795_mfg_drv);
......
...@@ -547,7 +547,7 @@ static struct platform_driver clk_mt6795_topckgen_drv = { ...@@ -547,7 +547,7 @@ static struct platform_driver clk_mt6795_topckgen_drv = {
.of_match_table = of_match_clk_mt6795_topckgen, .of_match_table = of_match_clk_mt6795_topckgen,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt6795_topckgen_drv); module_platform_driver(clk_mt6795_topckgen_drv);
......
...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6795_vdecsys); ...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6795_vdecsys);
static struct platform_driver clk_mt6795_vdecsys_drv = { static struct platform_driver clk_mt6795_vdecsys_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6795-vdecsys", .name = "clk-mt6795-vdecsys",
.of_match_table = of_match_clk_mt6795_vdecsys, .of_match_table = of_match_clk_mt6795_vdecsys,
......
...@@ -43,7 +43,7 @@ static struct platform_driver clk_mt6795_vencsys_drv = { ...@@ -43,7 +43,7 @@ static struct platform_driver clk_mt6795_vencsys_drv = {
.of_match_table = of_match_clk_mt6795_vencsys, .of_match_table = of_match_clk_mt6795_vencsys,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt6795_vencsys_drv); module_platform_driver(clk_mt6795_vencsys_drv);
......
...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_img); ...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_img);
static struct platform_driver clk_mt6797_img_drv = { static struct platform_driver clk_mt6797_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6797-img", .name = "clk-mt6797-img",
.of_match_table = of_match_clk_mt6797_img, .of_match_table = of_match_clk_mt6797_img,
......
...@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_vdec); ...@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_vdec);
static struct platform_driver clk_mt6797_vdec_drv = { static struct platform_driver clk_mt6797_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6797-vdec", .name = "clk-mt6797-vdec",
.of_match_table = of_match_clk_mt6797_vdec, .of_match_table = of_match_clk_mt6797_vdec,
......
...@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_venc); ...@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt6797_venc);
static struct platform_driver clk_mt6797_venc_drv = { static struct platform_driver clk_mt6797_venc_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt6797-venc", .name = "clk-mt6797-venc",
.of_match_table = of_match_clk_mt6797_venc, .of_match_table = of_match_clk_mt6797_venc,
......
...@@ -135,10 +135,10 @@ static int clk_mt7622_aud_probe(struct platform_device *pdev) ...@@ -135,10 +135,10 @@ static int clk_mt7622_aud_probe(struct platform_device *pdev)
return r; 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); 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[] = { static const struct of_device_id of_match_clk_mt7622_aud[] = {
...@@ -149,7 +149,7 @@ MODULE_DEVICE_TABLE(of, 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 = { static struct platform_driver clk_mt7622_aud_drv = {
.probe = clk_mt7622_aud_probe, .probe = clk_mt7622_aud_probe,
.remove = clk_mt7622_aud_remove, .remove_new = clk_mt7622_aud_remove,
.driver = { .driver = {
.name = "clk-mt7622-aud", .name = "clk-mt7622-aud",
.of_match_table = of_match_clk_mt7622_aud, .of_match_table = of_match_clk_mt7622_aud,
......
...@@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7622_eth); ...@@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7622_eth);
static struct platform_driver clk_mt7622_eth_drv = { static struct platform_driver clk_mt7622_eth_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt7622-eth", .name = "clk-mt7622-eth",
.of_match_table = of_match_clk_mt7622_eth, .of_match_table = of_match_clk_mt7622_eth,
......
...@@ -93,7 +93,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7622_hif); ...@@ -93,7 +93,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7622_hif);
static struct platform_driver clk_mt7622_hif_drv = { static struct platform_driver clk_mt7622_hif_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt7622-hif", .name = "clk-mt7622-hif",
.of_match_table = of_match_clk_mt7622_hif, .of_match_table = of_match_clk_mt7622_hif,
......
...@@ -526,7 +526,7 @@ static struct platform_driver clk_mt7622_drv = { ...@@ -526,7 +526,7 @@ static struct platform_driver clk_mt7622_drv = {
.of_match_table = of_match_clk_mt7622, .of_match_table = of_match_clk_mt7622,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt7622_drv) module_platform_driver(clk_mt7622_drv)
......
...@@ -88,7 +88,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7629_hif); ...@@ -88,7 +88,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7629_hif);
static struct platform_driver clk_mt7629_hif_drv = { static struct platform_driver clk_mt7629_hif_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt7629-hif", .name = "clk-mt7629-hif",
.of_match_table = of_match_clk_mt7629_hif, .of_match_table = of_match_clk_mt7629_hif,
......
...@@ -109,7 +109,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_eth); ...@@ -109,7 +109,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_eth);
static struct platform_driver clk_mt7981_eth_drv = { static struct platform_driver clk_mt7981_eth_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt7981-eth", .name = "clk-mt7981-eth",
.of_match_table = of_match_clk_mt7981_eth, .of_match_table = of_match_clk_mt7981_eth,
......
...@@ -199,7 +199,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_infracfg); ...@@ -199,7 +199,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_infracfg);
static struct platform_driver clk_mt7981_infracfg_drv = { static struct platform_driver clk_mt7981_infracfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt7981-infracfg", .name = "clk-mt7981-infracfg",
.of_match_table = of_match_clk_mt7981_infracfg, .of_match_table = of_match_clk_mt7981_infracfg,
......
...@@ -414,7 +414,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_topckgen); ...@@ -414,7 +414,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7981_topckgen);
static struct platform_driver clk_mt7981_topckgen_drv = { static struct platform_driver clk_mt7981_topckgen_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt7981-topckgen", .name = "clk-mt7981-topckgen",
.of_match_table = of_match_clk_mt7981_topckgen, .of_match_table = of_match_clk_mt7981_topckgen,
......
...@@ -94,7 +94,7 @@ static struct platform_driver clk_mt7986_eth_drv = { ...@@ -94,7 +94,7 @@ static struct platform_driver clk_mt7986_eth_drv = {
.of_match_table = of_match_clk_mt7986_eth, .of_match_table = of_match_clk_mt7986_eth,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt7986_eth_drv); module_platform_driver(clk_mt7986_eth_drv);
......
...@@ -179,7 +179,7 @@ static struct platform_driver clk_mt7986_infracfg_drv = { ...@@ -179,7 +179,7 @@ static struct platform_driver clk_mt7986_infracfg_drv = {
.of_match_table = of_match_clk_mt7986_infracfg, .of_match_table = of_match_clk_mt7986_infracfg,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt7986_infracfg_drv); module_platform_driver(clk_mt7986_infracfg_drv);
......
...@@ -308,7 +308,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7986_topckgen); ...@@ -308,7 +308,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt7986_topckgen);
static struct platform_driver clk_mt7986_topckgen_drv = { static struct platform_driver clk_mt7986_topckgen_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt7986-topckgen", .name = "clk-mt7986-topckgen",
.of_match_table = of_match_clk_mt7986_topckgen, .of_match_table = of_match_clk_mt7986_topckgen,
......
...@@ -558,7 +558,7 @@ static struct platform_driver clk_mt8135_drv = { ...@@ -558,7 +558,7 @@ static struct platform_driver clk_mt8135_drv = {
.of_match_table = of_match_clk_mt8135, .of_match_table = of_match_clk_mt8135,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt8135_drv); module_platform_driver(clk_mt8135_drv);
......
...@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_audsys); ...@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_audsys);
static struct platform_driver clk_mt8167_audsys_drv = { static struct platform_driver clk_mt8167_audsys_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8167-audsys", .name = "clk-mt8167-audsys",
.of_match_table = of_match_clk_mt8167_audsys, .of_match_table = of_match_clk_mt8167_audsys,
......
...@@ -48,7 +48,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_imgsys); ...@@ -48,7 +48,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_imgsys);
static struct platform_driver clk_mt8167_imgsys_drv = { static struct platform_driver clk_mt8167_imgsys_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8167-imgsys", .name = "clk-mt8167-imgsys",
.of_match_table = of_match_clk_mt8167_imgsys, .of_match_table = of_match_clk_mt8167_imgsys,
......
...@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_mfgcfg); ...@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_mfgcfg);
static struct platform_driver clk_mt8167_mfgcfg_drv = { static struct platform_driver clk_mt8167_mfgcfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8167-mfgcfg", .name = "clk-mt8167-mfgcfg",
.of_match_table = of_match_clk_mt8167_mfgcfg, .of_match_table = of_match_clk_mt8167_mfgcfg,
......
...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_vdec); ...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167_vdec);
static struct platform_driver clk_mt8167_vdec_drv = { static struct platform_driver clk_mt8167_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8167-vdecsys", .name = "clk-mt8167-vdecsys",
.of_match_table = of_match_clk_mt8167_vdec, .of_match_table = of_match_clk_mt8167_vdec,
......
...@@ -887,7 +887,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167); ...@@ -887,7 +887,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8167);
static struct platform_driver clk_mt8167_drv = { static struct platform_driver clk_mt8167_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8167", .name = "clk-mt8167",
.of_match_table = of_match_clk_mt8167, .of_match_table = of_match_clk_mt8167,
......
...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8173_imgsys); ...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8173_imgsys);
static struct platform_driver clk_mt8173_vdecsys_drv = { static struct platform_driver clk_mt8173_vdecsys_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8173-imgsys", .name = "clk-mt8173-imgsys",
.of_match_table = of_match_clk_mt8173_imgsys, .of_match_table = of_match_clk_mt8173_imgsys,
......
...@@ -115,7 +115,7 @@ static struct platform_driver clk_mt8173_pericfg_drv = { ...@@ -115,7 +115,7 @@ static struct platform_driver clk_mt8173_pericfg_drv = {
.of_match_table = of_match_clk_mt8173_pericfg, .of_match_table = of_match_clk_mt8173_pericfg,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt8173_pericfg_drv); module_platform_driver(clk_mt8173_pericfg_drv);
......
...@@ -646,7 +646,7 @@ static struct platform_driver clk_mt8173_topckgen_drv = { ...@@ -646,7 +646,7 @@ static struct platform_driver clk_mt8173_topckgen_drv = {
.of_match_table = of_match_clk_mt8173_topckgen, .of_match_table = of_match_clk_mt8173_topckgen,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt8173_topckgen_drv); module_platform_driver(clk_mt8173_topckgen_drv);
......
...@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8173_vdecsys); ...@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8173_vdecsys);
static struct platform_driver clk_mt8173_vdecsys_drv = { static struct platform_driver clk_mt8173_vdecsys_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8173-vdecsys", .name = "clk-mt8173-vdecsys",
.of_match_table = of_match_clk_mt8173_vdecsys, .of_match_table = of_match_clk_mt8173_vdecsys,
......
...@@ -57,7 +57,7 @@ static struct platform_driver clk_mt8173_vencsys_drv = { ...@@ -57,7 +57,7 @@ static struct platform_driver clk_mt8173_vencsys_drv = {
.of_match_table = of_match_clk_mt8173_vencsys, .of_match_table = of_match_clk_mt8173_vencsys,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt8173_vencsys_drv); module_platform_driver(clk_mt8173_vencsys_drv);
......
...@@ -87,10 +87,10 @@ static int clk_mt8183_audio_probe(struct platform_device *pdev) ...@@ -87,10 +87,10 @@ static int clk_mt8183_audio_probe(struct platform_device *pdev)
return r; 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); 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[] = { static const struct of_device_id of_match_clk_mt8183_audio[] = {
...@@ -101,7 +101,7 @@ MODULE_DEVICE_TABLE(of, 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 = { static struct platform_driver clk_mt8183_audio_drv = {
.probe = clk_mt8183_audio_probe, .probe = clk_mt8183_audio_probe,
.remove = clk_mt8183_audio_remove, .remove_new = clk_mt8183_audio_remove,
.driver = { .driver = {
.name = "clk-mt8183-audio", .name = "clk-mt8183-audio",
.of_match_table = of_match_clk_mt8183_audio, .of_match_table = of_match_clk_mt8183_audio,
......
...@@ -51,7 +51,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_cam); ...@@ -51,7 +51,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_cam);
static struct platform_driver clk_mt8183_cam_drv = { static struct platform_driver clk_mt8183_cam_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-cam", .name = "clk-mt8183-cam",
.of_match_table = of_match_clk_mt8183_cam, .of_match_table = of_match_clk_mt8183_cam,
......
...@@ -51,7 +51,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_img); ...@@ -51,7 +51,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_img);
static struct platform_driver clk_mt8183_img_drv = { static struct platform_driver clk_mt8183_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-img", .name = "clk-mt8183-img",
.of_match_table = of_match_clk_mt8183_img, .of_match_table = of_match_clk_mt8183_img,
......
...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_core0); ...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_core0);
static struct platform_driver clk_mt8183_ipu_core0_drv = { static struct platform_driver clk_mt8183_ipu_core0_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-ipu_core0", .name = "clk-mt8183-ipu_core0",
.of_match_table = of_match_clk_mt8183_ipu_core0, .of_match_table = of_match_clk_mt8183_ipu_core0,
......
...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_core1); ...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_core1);
static struct platform_driver clk_mt8183_ipu_core1_drv = { static struct platform_driver clk_mt8183_ipu_core1_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-ipu_core1", .name = "clk-mt8183-ipu_core1",
.of_match_table = of_match_clk_mt8183_ipu_core1, .of_match_table = of_match_clk_mt8183_ipu_core1,
......
...@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_adl); ...@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_adl);
static struct platform_driver clk_mt8183_ipu_adl_drv = { static struct platform_driver clk_mt8183_ipu_adl_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-ipu_adl", .name = "clk-mt8183-ipu_adl",
.of_match_table = of_match_clk_mt8183_ipu_adl, .of_match_table = of_match_clk_mt8183_ipu_adl,
......
...@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_conn); ...@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_ipu_conn);
static struct platform_driver clk_mt8183_ipu_conn_drv = { static struct platform_driver clk_mt8183_ipu_conn_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-ipu_conn", .name = "clk-mt8183-ipu_conn",
.of_match_table = of_match_clk_mt8183_ipu_conn, .of_match_table = of_match_clk_mt8183_ipu_conn,
......
...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_mfg); ...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_mfg);
static struct platform_driver clk_mt8183_mfg_drv = { static struct platform_driver clk_mt8183_mfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-mfg", .name = "clk-mt8183-mfg",
.of_match_table = of_match_clk_mt8183_mfg, .of_match_table = of_match_clk_mt8183_mfg,
......
...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_vdec); ...@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_vdec);
static struct platform_driver clk_mt8183_vdec_drv = { static struct platform_driver clk_mt8183_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-vdec", .name = "clk-mt8183-vdec",
.of_match_table = of_match_clk_mt8183_vdec, .of_match_table = of_match_clk_mt8183_vdec,
......
...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_venc); ...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183_venc);
static struct platform_driver clk_mt8183_venc_drv = { static struct platform_driver clk_mt8183_venc_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183-venc", .name = "clk-mt8183-venc",
.of_match_table = of_match_clk_mt8183_venc, .of_match_table = of_match_clk_mt8183_venc,
......
...@@ -872,7 +872,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183); ...@@ -872,7 +872,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8183);
static struct platform_driver clk_mt8183_drv = { static struct platform_driver clk_mt8183_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8183", .name = "clk-mt8183",
.of_match_table = of_match_clk_mt8183, .of_match_table = of_match_clk_mt8183,
......
...@@ -82,7 +82,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_cam); ...@@ -82,7 +82,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_cam);
static struct platform_driver clk_mt8186_cam_drv = { static struct platform_driver clk_mt8186_cam_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-cam", .name = "clk-mt8186-cam",
.of_match_table = of_match_clk_mt8186_cam, .of_match_table = of_match_clk_mt8186_cam,
......
...@@ -60,7 +60,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_img); ...@@ -60,7 +60,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_img);
static struct platform_driver clk_mt8186_img_drv = { static struct platform_driver clk_mt8186_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-img", .name = "clk-mt8186-img",
.of_match_table = of_match_clk_mt8186_img, .of_match_table = of_match_clk_mt8186_img,
......
...@@ -59,7 +59,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_imp_iic_wrap); ...@@ -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 = { static struct platform_driver clk_mt8186_imp_iic_wrap_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-imp_iic_wrap", .name = "clk-mt8186-imp_iic_wrap",
.of_match_table = of_match_clk_mt8186_imp_iic_wrap, .of_match_table = of_match_clk_mt8186_imp_iic_wrap,
......
...@@ -231,7 +231,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_infra_ao); ...@@ -231,7 +231,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_infra_ao);
static struct platform_driver clk_mt8186_infra_ao_drv = { static struct platform_driver clk_mt8186_infra_ao_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-infra-ao", .name = "clk-mt8186-infra-ao",
.of_match_table = of_match_clk_mt8186_infra_ao, .of_match_table = of_match_clk_mt8186_infra_ao,
......
...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_ipe); ...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_ipe);
static struct platform_driver clk_mt8186_ipe_drv = { static struct platform_driver clk_mt8186_ipe_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-ipe", .name = "clk-mt8186-ipe",
.of_match_table = of_match_clk_mt8186_ipe, .of_match_table = of_match_clk_mt8186_ipe,
......
...@@ -60,7 +60,7 @@ static struct platform_driver clk_mt8186_mcu_drv = { ...@@ -60,7 +60,7 @@ static struct platform_driver clk_mt8186_mcu_drv = {
.of_match_table = of_match_clk_mt8186_mcu, .of_match_table = of_match_clk_mt8186_mcu,
}, },
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
}; };
module_platform_driver(clk_mt8186_mcu_drv); module_platform_driver(clk_mt8186_mcu_drv);
......
...@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_mdp); ...@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_mdp);
static struct platform_driver clk_mt8186_mdp_drv = { static struct platform_driver clk_mt8186_mdp_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-mdp", .name = "clk-mt8186-mdp",
.of_match_table = of_match_clk_mt8186_mdp, .of_match_table = of_match_clk_mt8186_mdp,
......
...@@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_mfg); ...@@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_mfg);
static struct platform_driver clk_mt8186_mfg_drv = { static struct platform_driver clk_mt8186_mfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-mfg", .name = "clk-mt8186-mfg",
.of_match_table = of_match_clk_mt8186_mfg, .of_match_table = of_match_clk_mt8186_mfg,
......
...@@ -725,7 +725,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_topck); ...@@ -725,7 +725,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_topck);
static struct platform_driver clk_mt8186_topck_drv = { static struct platform_driver clk_mt8186_topck_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-topck", .name = "clk-mt8186-topck",
.of_match_table = of_match_clk_mt8186_topck, .of_match_table = of_match_clk_mt8186_topck,
......
...@@ -80,7 +80,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_vdec); ...@@ -80,7 +80,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_vdec);
static struct platform_driver clk_mt8186_vdec_drv = { static struct platform_driver clk_mt8186_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-vdec", .name = "clk-mt8186-vdec",
.of_match_table = of_match_clk_mt8186_vdec, .of_match_table = of_match_clk_mt8186_vdec,
......
...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_venc); ...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_venc);
static struct platform_driver clk_mt8186_venc_drv = { static struct platform_driver clk_mt8186_venc_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-venc", .name = "clk-mt8186-venc",
.of_match_table = of_match_clk_mt8186_venc, .of_match_table = of_match_clk_mt8186_venc,
......
...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_wpe); ...@@ -43,7 +43,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8186_wpe);
static struct platform_driver clk_mt8186_wpe_drv = { static struct platform_driver clk_mt8186_wpe_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8186-wpe", .name = "clk-mt8186-wpe",
.of_match_table = of_match_clk_mt8186_wpe, .of_match_table = of_match_clk_mt8186_wpe,
......
...@@ -40,7 +40,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_adsp_audio26m); ...@@ -40,7 +40,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_adsp_audio26m);
static struct platform_driver clk_mt8188_adsp_audio26m_drv = { static struct platform_driver clk_mt8188_adsp_audio26m_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-adsp_audio26m", .name = "clk-mt8188-adsp_audio26m",
.of_match_table = of_match_clk_mt8188_adsp_audio26m, .of_match_table = of_match_clk_mt8188_adsp_audio26m,
......
...@@ -109,7 +109,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_cam); ...@@ -109,7 +109,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_cam);
static struct platform_driver clk_mt8188_cam_drv = { static struct platform_driver clk_mt8188_cam_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-cam", .name = "clk-mt8188-cam",
.of_match_table = of_match_clk_mt8188_cam, .of_match_table = of_match_clk_mt8188_cam,
......
...@@ -39,7 +39,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_ccu); ...@@ -39,7 +39,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_ccu);
static struct platform_driver clk_mt8188_ccu_drv = { static struct platform_driver clk_mt8188_ccu_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-ccu", .name = "clk-mt8188-ccu",
.of_match_table = of_match_clk_mt8188_ccu, .of_match_table = of_match_clk_mt8188_ccu,
......
...@@ -101,7 +101,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_imgsys_main); ...@@ -101,7 +101,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_imgsys_main);
static struct platform_driver clk_mt8188_imgsys_main_drv = { static struct platform_driver clk_mt8188_imgsys_main_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-imgsys_main", .name = "clk-mt8188-imgsys_main",
.of_match_table = of_match_clk_mt8188_imgsys_main, .of_match_table = of_match_clk_mt8188_imgsys_main,
......
...@@ -71,7 +71,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_imp_iic_wrap); ...@@ -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 = { static struct platform_driver clk_mt8188_imp_iic_wrap_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-imp_iic_wrap", .name = "clk-mt8188-imp_iic_wrap",
.of_match_table = of_match_clk_mt8188_imp_iic_wrap, .of_match_table = of_match_clk_mt8188_imp_iic_wrap,
......
...@@ -189,7 +189,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_infra_ao); ...@@ -189,7 +189,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_infra_ao);
static struct platform_driver clk_mt8188_infra_ao_drv = { static struct platform_driver clk_mt8188_infra_ao_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-infra_ao", .name = "clk-mt8188-infra_ao",
.of_match_table = of_match_clk_mt8188_infra_ao, .of_match_table = of_match_clk_mt8188_infra_ao,
......
...@@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_ipe); ...@@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_ipe);
static struct platform_driver clk_mt8188_ipe_drv = { static struct platform_driver clk_mt8188_ipe_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-ipe", .name = "clk-mt8188-ipe",
.of_match_table = of_match_clk_mt8188_ipe, .of_match_table = of_match_clk_mt8188_ipe,
......
...@@ -38,7 +38,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_mfgcfg); ...@@ -38,7 +38,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_mfgcfg);
static struct platform_driver clk_mt8188_mfgcfg_drv = { static struct platform_driver clk_mt8188_mfgcfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-mfgcfg", .name = "clk-mt8188-mfgcfg",
.of_match_table = of_match_clk_mt8188_mfgcfg, .of_match_table = of_match_clk_mt8188_mfgcfg,
......
...@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_peri_ao); ...@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_peri_ao);
static struct platform_driver clk_mt8188_peri_ao_drv = { static struct platform_driver clk_mt8188_peri_ao_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-peri_ao", .name = "clk-mt8188-peri_ao",
.of_match_table = of_match_clk_mt8188_peri_ao, .of_match_table = of_match_clk_mt8188_peri_ao,
......
...@@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_vdec); ...@@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_vdec);
static struct platform_driver clk_mt8188_vdec_drv = { static struct platform_driver clk_mt8188_vdec_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-vdec", .name = "clk-mt8188-vdec",
.of_match_table = of_match_clk_mt8188_vdec, .of_match_table = of_match_clk_mt8188_vdec,
......
...@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_venc1); ...@@ -45,7 +45,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_venc1);
static struct platform_driver clk_mt8188_venc1_drv = { static struct platform_driver clk_mt8188_venc1_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-venc1", .name = "clk-mt8188-venc1",
.of_match_table = of_match_clk_mt8188_venc1, .of_match_table = of_match_clk_mt8188_venc1,
......
...@@ -94,7 +94,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_wpe); ...@@ -94,7 +94,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8188_wpe);
static struct platform_driver clk_mt8188_wpe_drv = { static struct platform_driver clk_mt8188_wpe_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8188-wpe", .name = "clk-mt8188-wpe",
.of_match_table = of_match_clk_mt8188_wpe, .of_match_table = of_match_clk_mt8188_wpe,
......
...@@ -97,10 +97,10 @@ static int clk_mt8192_aud_probe(struct platform_device *pdev) ...@@ -97,10 +97,10 @@ static int clk_mt8192_aud_probe(struct platform_device *pdev)
return r; 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); 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[] = { static const struct of_device_id of_match_clk_mt8192_aud[] = {
...@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(of, 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 = { static struct platform_driver clk_mt8192_aud_drv = {
.probe = clk_mt8192_aud_probe, .probe = clk_mt8192_aud_probe,
.remove = clk_mt8192_aud_remove, .remove_new = clk_mt8192_aud_remove,
.driver = { .driver = {
.name = "clk-mt8192-aud", .name = "clk-mt8192-aud",
.of_match_table = of_match_clk_mt8192_aud, .of_match_table = of_match_clk_mt8192_aud,
......
...@@ -99,7 +99,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_cam); ...@@ -99,7 +99,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_cam);
static struct platform_driver clk_mt8192_cam_drv = { static struct platform_driver clk_mt8192_cam_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8192-cam", .name = "clk-mt8192-cam",
.of_match_table = of_match_clk_mt8192_cam, .of_match_table = of_match_clk_mt8192_cam,
......
...@@ -62,7 +62,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_img); ...@@ -62,7 +62,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_img);
static struct platform_driver clk_mt8192_img_drv = { static struct platform_driver clk_mt8192_img_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8192-img", .name = "clk-mt8192-img",
.of_match_table = of_match_clk_mt8192_img, .of_match_table = of_match_clk_mt8192_img,
......
...@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_imp_iic_wrap); ...@@ -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 = { static struct platform_driver clk_mt8192_imp_iic_wrap_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8192-imp_iic_wrap", .name = "clk-mt8192-imp_iic_wrap",
.of_match_table = of_match_clk_mt8192_imp_iic_wrap, .of_match_table = of_match_clk_mt8192_imp_iic_wrap,
......
...@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_ipe); ...@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_ipe);
static struct platform_driver clk_mt8192_ipe_drv = { static struct platform_driver clk_mt8192_ipe_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8192-ipe", .name = "clk-mt8192-ipe",
.of_match_table = of_match_clk_mt8192_ipe, .of_match_table = of_match_clk_mt8192_ipe,
......
...@@ -74,7 +74,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_mdp); ...@@ -74,7 +74,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_mdp);
static struct platform_driver clk_mt8192_mdp_drv = { static struct platform_driver clk_mt8192_mdp_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8192-mdp", .name = "clk-mt8192-mdp",
.of_match_table = of_match_clk_mt8192_mdp, .of_match_table = of_match_clk_mt8192_mdp,
......
...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_mfg); ...@@ -44,7 +44,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_mfg);
static struct platform_driver clk_mt8192_mfg_drv = { static struct platform_driver clk_mt8192_mfg_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8192-mfg", .name = "clk-mt8192-mfg",
.of_match_table = of_match_clk_mt8192_mfg, .of_match_table = of_match_clk_mt8192_mfg,
......
...@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_msdc); ...@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt8192_msdc);
static struct platform_driver clk_mt8192_msdc_drv = { static struct platform_driver clk_mt8192_msdc_drv = {
.probe = mtk_clk_simple_probe, .probe = mtk_clk_simple_probe,
.remove = mtk_clk_simple_remove, .remove_new = mtk_clk_simple_remove,
.driver = { .driver = {
.name = "clk-mt8192-msdc", .name = "clk-mt8192-msdc",
.of_match_table = of_match_clk_mt8192_msdc, .of_match_table = of_match_clk_mt8192_msdc,
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment