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