Commit 164d240d authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Stephen Boyd

clk: mediatek: Switch to module_platform_driver() where possible

Lots of clock drivers have got both .probe() and a .remove() callbacks:
switch from builtin_platform_driver() to module_platform_driver() so
that we actually register the .remove() callback.
Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: default avatarChen-Yu Tsai <wenst@chromium.org>
Tested-by: default avatarMiles Chen <miles.chen@mediatek.com>
Tested-by: Chen-Yu Tsai <wenst@chromium.org> # MT8183, MT8192, MT8195 Chromebooks
Link: https://lore.kernel.org/r/20230306140543.1813621-37-angelogioacchino.delregno@collabora.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent c5f34f63
...@@ -163,5 +163,4 @@ static struct platform_driver clk_mt2701_aud_drv = { ...@@ -163,5 +163,4 @@ static struct platform_driver clk_mt2701_aud_drv = {
.of_match_table = of_match_clk_mt2701_aud, .of_match_table = of_match_clk_mt2701_aud,
}, },
}; };
module_platform_driver(clk_mt2701_aud_drv);
builtin_platform_driver(clk_mt2701_aud_drv);
...@@ -104,5 +104,4 @@ static struct platform_driver clk_mt2701_bdp_drv = { ...@@ -104,5 +104,4 @@ static struct platform_driver clk_mt2701_bdp_drv = {
.of_match_table = of_match_clk_mt2701_bdp, .of_match_table = of_match_clk_mt2701_bdp,
}, },
}; };
module_platform_driver(clk_mt2701_bdp_drv);
builtin_platform_driver(clk_mt2701_bdp_drv);
...@@ -58,5 +58,4 @@ static struct platform_driver clk_mt2701_eth_drv = { ...@@ -58,5 +58,4 @@ static struct platform_driver clk_mt2701_eth_drv = {
.of_match_table = of_match_clk_mt2701_eth, .of_match_table = of_match_clk_mt2701_eth,
}, },
}; };
module_platform_driver(clk_mt2701_eth_drv);
builtin_platform_driver(clk_mt2701_eth_drv);
...@@ -57,5 +57,4 @@ static struct platform_driver clk_mt2701_g3d_drv = { ...@@ -57,5 +57,4 @@ static struct platform_driver clk_mt2701_g3d_drv = {
.of_match_table = of_match_clk_mt2701_g3d, .of_match_table = of_match_clk_mt2701_g3d,
}, },
}; };
module_platform_driver(clk_mt2701_g3d_drv);
builtin_platform_driver(clk_mt2701_g3d_drv);
...@@ -55,5 +55,4 @@ static struct platform_driver clk_mt2701_hif_drv = { ...@@ -55,5 +55,4 @@ static struct platform_driver clk_mt2701_hif_drv = {
.of_match_table = of_match_clk_mt2701_hif, .of_match_table = of_match_clk_mt2701_hif,
}, },
}; };
module_platform_driver(clk_mt2701_hif_drv);
builtin_platform_driver(clk_mt2701_hif_drv);
...@@ -52,5 +52,4 @@ static struct platform_driver clk_mt2701_img_drv = { ...@@ -52,5 +52,4 @@ static struct platform_driver clk_mt2701_img_drv = {
.of_match_table = of_match_clk_mt2701_img, .of_match_table = of_match_clk_mt2701_img,
}, },
}; };
module_platform_driver(clk_mt2701_img_drv);
builtin_platform_driver(clk_mt2701_img_drv);
...@@ -85,5 +85,4 @@ static struct platform_driver clk_mt2701_mm_drv = { ...@@ -85,5 +85,4 @@ static struct platform_driver clk_mt2701_mm_drv = {
}, },
.id_table = clk_mt2701_mm_id_table, .id_table = clk_mt2701_mm_id_table,
}; };
module_platform_driver(clk_mt2701_mm_drv);
builtin_platform_driver(clk_mt2701_mm_drv);
...@@ -57,5 +57,4 @@ static struct platform_driver clk_mt2701_vdec_drv = { ...@@ -57,5 +57,4 @@ static struct platform_driver clk_mt2701_vdec_drv = {
.of_match_table = of_match_clk_mt2701_vdec, .of_match_table = of_match_clk_mt2701_vdec,
}, },
}; };
module_platform_driver(clk_mt2701_vdec_drv);
builtin_platform_driver(clk_mt2701_vdec_drv);
...@@ -74,5 +74,4 @@ static struct platform_driver clk_mt2712_bdp_drv = { ...@@ -74,5 +74,4 @@ static struct platform_driver clk_mt2712_bdp_drv = {
.of_match_table = of_match_clk_mt2712_bdp, .of_match_table = of_match_clk_mt2712_bdp,
}, },
}; };
module_platform_driver(clk_mt2712_bdp_drv);
builtin_platform_driver(clk_mt2712_bdp_drv);
...@@ -52,5 +52,4 @@ static struct platform_driver clk_mt2712_img_drv = { ...@@ -52,5 +52,4 @@ static struct platform_driver clk_mt2712_img_drv = {
.of_match_table = of_match_clk_mt2712_img, .of_match_table = of_match_clk_mt2712_img,
}, },
}; };
module_platform_driver(clk_mt2712_img_drv);
builtin_platform_driver(clk_mt2712_img_drv);
...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt2712_jpgdec_drv = { ...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt2712_jpgdec_drv = {
.of_match_table = of_match_clk_mt2712_jpgdec, .of_match_table = of_match_clk_mt2712_jpgdec,
}, },
}; };
module_platform_driver(clk_mt2712_jpgdec_drv);
builtin_platform_driver(clk_mt2712_jpgdec_drv);
...@@ -47,5 +47,4 @@ static struct platform_driver clk_mt2712_mfg_drv = { ...@@ -47,5 +47,4 @@ static struct platform_driver clk_mt2712_mfg_drv = {
.of_match_table = of_match_clk_mt2712_mfg, .of_match_table = of_match_clk_mt2712_mfg,
}, },
}; };
module_platform_driver(clk_mt2712_mfg_drv);
builtin_platform_driver(clk_mt2712_mfg_drv);
...@@ -126,5 +126,4 @@ static struct platform_driver clk_mt2712_mm_drv = { ...@@ -126,5 +126,4 @@ static struct platform_driver clk_mt2712_mm_drv = {
}, },
.id_table = clk_mt2712_mm_id_table, .id_table = clk_mt2712_mm_id_table,
}; };
module_platform_driver(clk_mt2712_mm_drv);
builtin_platform_driver(clk_mt2712_mm_drv);
...@@ -60,5 +60,4 @@ static struct platform_driver clk_mt2712_vdec_drv = { ...@@ -60,5 +60,4 @@ static struct platform_driver clk_mt2712_vdec_drv = {
.of_match_table = of_match_clk_mt2712_vdec, .of_match_table = of_match_clk_mt2712_vdec,
}, },
}; };
module_platform_driver(clk_mt2712_vdec_drv);
builtin_platform_driver(clk_mt2712_vdec_drv);
...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt2712_venc_drv = { ...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt2712_venc_drv = {
.of_match_table = of_match_clk_mt2712_venc, .of_match_table = of_match_clk_mt2712_venc,
}, },
}; };
module_platform_driver(clk_mt2712_venc_drv);
builtin_platform_driver(clk_mt2712_venc_drv);
...@@ -74,5 +74,4 @@ static struct platform_driver clk_mt6765_audio_drv = { ...@@ -74,5 +74,4 @@ static struct platform_driver clk_mt6765_audio_drv = {
.of_match_table = of_match_clk_mt6765_audio, .of_match_table = of_match_clk_mt6765_audio,
}, },
}; };
module_platform_driver(clk_mt6765_audio_drv);
builtin_platform_driver(clk_mt6765_audio_drv);
...@@ -55,5 +55,4 @@ static struct platform_driver clk_mt6765_cam_drv = { ...@@ -55,5 +55,4 @@ static struct platform_driver clk_mt6765_cam_drv = {
.of_match_table = of_match_clk_mt6765_cam, .of_match_table = of_match_clk_mt6765_cam,
}, },
}; };
module_platform_driver(clk_mt6765_cam_drv);
builtin_platform_driver(clk_mt6765_cam_drv);
...@@ -51,5 +51,4 @@ static struct platform_driver clk_mt6765_img_drv = { ...@@ -51,5 +51,4 @@ static struct platform_driver clk_mt6765_img_drv = {
.of_match_table = of_match_clk_mt6765_img, .of_match_table = of_match_clk_mt6765_img,
}, },
}; };
module_platform_driver(clk_mt6765_img_drv);
builtin_platform_driver(clk_mt6765_img_drv);
...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt6765_mipi0a_drv = { ...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt6765_mipi0a_drv = {
.of_match_table = of_match_clk_mt6765_mipi0a, .of_match_table = of_match_clk_mt6765_mipi0a,
}, },
}; };
module_platform_driver(clk_mt6765_mipi0a_drv);
builtin_platform_driver(clk_mt6765_mipi0a_drv);
...@@ -77,5 +77,4 @@ static struct platform_driver clk_mt6765_mm_drv = { ...@@ -77,5 +77,4 @@ static struct platform_driver clk_mt6765_mm_drv = {
.of_match_table = of_match_clk_mt6765_mm, .of_match_table = of_match_clk_mt6765_mm,
}, },
}; };
module_platform_driver(clk_mt6765_mm_drv);
builtin_platform_driver(clk_mt6765_mm_drv);
...@@ -50,5 +50,4 @@ static struct platform_driver clk_mt6765_vcodec_drv = { ...@@ -50,5 +50,4 @@ static struct platform_driver clk_mt6765_vcodec_drv = {
.of_match_table = of_match_clk_mt6765_vcodec, .of_match_table = of_match_clk_mt6765_vcodec,
}, },
}; };
module_platform_driver(clk_mt6765_vcodec_drv);
builtin_platform_driver(clk_mt6765_vcodec_drv);
...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt6797_img_drv = { ...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt6797_img_drv = {
.of_match_table = of_match_clk_mt6797_img, .of_match_table = of_match_clk_mt6797_img,
}, },
}; };
module_platform_driver(clk_mt6797_img_drv);
builtin_platform_driver(clk_mt6797_img_drv);
...@@ -98,5 +98,4 @@ static struct platform_driver clk_mt6797_mm_drv = { ...@@ -98,5 +98,4 @@ static struct platform_driver clk_mt6797_mm_drv = {
}, },
.id_table = clk_mt6797_mm_id_table, .id_table = clk_mt6797_mm_id_table,
}; };
module_platform_driver(clk_mt6797_mm_drv);
builtin_platform_driver(clk_mt6797_mm_drv);
...@@ -59,5 +59,4 @@ static struct platform_driver clk_mt6797_vdec_drv = { ...@@ -59,5 +59,4 @@ static struct platform_driver clk_mt6797_vdec_drv = {
.of_match_table = of_match_clk_mt6797_vdec, .of_match_table = of_match_clk_mt6797_vdec,
}, },
}; };
module_platform_driver(clk_mt6797_vdec_drv);
builtin_platform_driver(clk_mt6797_vdec_drv);
...@@ -50,5 +50,4 @@ static struct platform_driver clk_mt6797_venc_drv = { ...@@ -50,5 +50,4 @@ static struct platform_driver clk_mt6797_venc_drv = {
.of_match_table = of_match_clk_mt6797_venc, .of_match_table = of_match_clk_mt6797_venc,
}, },
}; };
module_platform_driver(clk_mt6797_venc_drv);
builtin_platform_driver(clk_mt6797_venc_drv);
...@@ -154,5 +154,4 @@ static struct platform_driver clk_mt7622_aud_drv = { ...@@ -154,5 +154,4 @@ static struct platform_driver clk_mt7622_aud_drv = {
.of_match_table = of_match_clk_mt7622_aud, .of_match_table = of_match_clk_mt7622_aud,
}, },
}; };
module_platform_driver(clk_mt7622_aud_drv);
builtin_platform_driver(clk_mt7622_aud_drv);
...@@ -86,5 +86,4 @@ static struct platform_driver clk_mt7622_eth_drv = { ...@@ -86,5 +86,4 @@ static struct platform_driver clk_mt7622_eth_drv = {
.of_match_table = of_match_clk_mt7622_eth, .of_match_table = of_match_clk_mt7622_eth,
}, },
}; };
module_platform_driver(clk_mt7622_eth_drv);
builtin_platform_driver(clk_mt7622_eth_drv);
...@@ -98,5 +98,4 @@ static struct platform_driver clk_mt7622_hif_drv = { ...@@ -98,5 +98,4 @@ static struct platform_driver clk_mt7622_hif_drv = {
.of_match_table = of_match_clk_mt7622_hif, .of_match_table = of_match_clk_mt7622_hif,
}, },
}; };
module_platform_driver(clk_mt7622_hif_drv);
builtin_platform_driver(clk_mt7622_hif_drv);
...@@ -93,5 +93,4 @@ static struct platform_driver clk_mt7629_hif_drv = { ...@@ -93,5 +93,4 @@ static struct platform_driver clk_mt7629_hif_drv = {
.of_match_table = of_match_clk_mt7629_hif, .of_match_table = of_match_clk_mt7629_hif,
}, },
}; };
module_platform_driver(clk_mt7629_hif_drv);
builtin_platform_driver(clk_mt7629_hif_drv);
...@@ -204,4 +204,4 @@ static struct platform_driver clk_mt7981_infracfg_drv = { ...@@ -204,4 +204,4 @@ static struct platform_driver clk_mt7981_infracfg_drv = {
.of_match_table = of_match_clk_mt7981_infracfg, .of_match_table = of_match_clk_mt7981_infracfg,
}, },
}; };
builtin_platform_driver(clk_mt7981_infracfg_drv); module_platform_driver(clk_mt7981_infracfg_drv);
...@@ -419,4 +419,4 @@ static struct platform_driver clk_mt7981_topckgen_drv = { ...@@ -419,4 +419,4 @@ static struct platform_driver clk_mt7981_topckgen_drv = {
.of_match_table = of_match_clk_mt7981_topckgen, .of_match_table = of_match_clk_mt7981_topckgen,
}, },
}; };
builtin_platform_driver(clk_mt7981_topckgen_drv); module_platform_driver(clk_mt7981_topckgen_drv);
...@@ -313,4 +313,4 @@ static struct platform_driver clk_mt7986_topckgen_drv = { ...@@ -313,4 +313,4 @@ static struct platform_driver clk_mt7986_topckgen_drv = {
.of_match_table = of_match_clk_mt7986_topckgen, .of_match_table = of_match_clk_mt7986_topckgen,
}, },
}; };
builtin_platform_driver(clk_mt7986_topckgen_drv); module_platform_driver(clk_mt7986_topckgen_drv);
...@@ -92,4 +92,4 @@ static struct platform_driver clk_mt8167_mm_drv = { ...@@ -92,4 +92,4 @@ static struct platform_driver clk_mt8167_mm_drv = {
}, },
.id_table = clk_mt8167_mm_id_table, .id_table = clk_mt8167_mm_id_table,
}; };
builtin_platform_driver(clk_mt8167_mm_drv); module_platform_driver(clk_mt8167_mm_drv);
...@@ -107,8 +107,7 @@ static struct platform_driver clk_mt8173_mm_drv = { ...@@ -107,8 +107,7 @@ static struct platform_driver clk_mt8173_mm_drv = {
.probe = mtk_clk_pdev_probe, .probe = mtk_clk_pdev_probe,
.remove = mtk_clk_pdev_remove, .remove = mtk_clk_pdev_remove,
}; };
module_platform_driver(clk_mt8173_mm_drv);
builtin_platform_driver(clk_mt8173_mm_drv);
MODULE_DESCRIPTION("MediaTek MT8173 MultiMedia clocks driver"); MODULE_DESCRIPTION("MediaTek MT8173 MultiMedia clocks driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -106,5 +106,4 @@ static struct platform_driver clk_mt8183_audio_drv = { ...@@ -106,5 +106,4 @@ static struct platform_driver clk_mt8183_audio_drv = {
.of_match_table = of_match_clk_mt8183_audio, .of_match_table = of_match_clk_mt8183_audio,
}, },
}; };
module_platform_driver(clk_mt8183_audio_drv);
builtin_platform_driver(clk_mt8183_audio_drv);
...@@ -56,5 +56,4 @@ static struct platform_driver clk_mt8183_cam_drv = { ...@@ -56,5 +56,4 @@ static struct platform_driver clk_mt8183_cam_drv = {
.of_match_table = of_match_clk_mt8183_cam, .of_match_table = of_match_clk_mt8183_cam,
}, },
}; };
module_platform_driver(clk_mt8183_cam_drv);
builtin_platform_driver(clk_mt8183_cam_drv);
...@@ -56,5 +56,4 @@ static struct platform_driver clk_mt8183_img_drv = { ...@@ -56,5 +56,4 @@ static struct platform_driver clk_mt8183_img_drv = {
.of_match_table = of_match_clk_mt8183_img, .of_match_table = of_match_clk_mt8183_img,
}, },
}; };
module_platform_driver(clk_mt8183_img_drv);
builtin_platform_driver(clk_mt8183_img_drv);
...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt8183_ipu_core0_drv = { ...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt8183_ipu_core0_drv = {
.of_match_table = of_match_clk_mt8183_ipu_core0, .of_match_table = of_match_clk_mt8183_ipu_core0,
}, },
}; };
module_platform_driver(clk_mt8183_ipu_core0_drv);
builtin_platform_driver(clk_mt8183_ipu_core0_drv);
...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt8183_ipu_core1_drv = { ...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt8183_ipu_core1_drv = {
.of_match_table = of_match_clk_mt8183_ipu_core1, .of_match_table = of_match_clk_mt8183_ipu_core1,
}, },
}; };
module_platform_driver(clk_mt8183_ipu_core1_drv);
builtin_platform_driver(clk_mt8183_ipu_core1_drv);
...@@ -47,5 +47,4 @@ static struct platform_driver clk_mt8183_ipu_adl_drv = { ...@@ -47,5 +47,4 @@ static struct platform_driver clk_mt8183_ipu_adl_drv = {
.of_match_table = of_match_clk_mt8183_ipu_adl, .of_match_table = of_match_clk_mt8183_ipu_adl,
}, },
}; };
module_platform_driver(clk_mt8183_ipu_adl_drv);
builtin_platform_driver(clk_mt8183_ipu_adl_drv);
...@@ -116,5 +116,4 @@ static struct platform_driver clk_mt8183_ipu_conn_drv = { ...@@ -116,5 +116,4 @@ static struct platform_driver clk_mt8183_ipu_conn_drv = {
.of_match_table = of_match_clk_mt8183_ipu_conn, .of_match_table = of_match_clk_mt8183_ipu_conn,
}, },
}; };
module_platform_driver(clk_mt8183_ipu_conn_drv);
builtin_platform_driver(clk_mt8183_ipu_conn_drv);
...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt8183_mfg_drv = { ...@@ -48,5 +48,4 @@ static struct platform_driver clk_mt8183_mfg_drv = {
.of_match_table = of_match_clk_mt8183_mfg, .of_match_table = of_match_clk_mt8183_mfg,
}, },
}; };
module_platform_driver(clk_mt8183_mfg_drv);
builtin_platform_driver(clk_mt8183_mfg_drv);
...@@ -100,5 +100,4 @@ static struct platform_driver clk_mt8183_mm_drv = { ...@@ -100,5 +100,4 @@ static struct platform_driver clk_mt8183_mm_drv = {
}, },
.id_table = clk_mt8183_mm_id_table, .id_table = clk_mt8183_mm_id_table,
}; };
module_platform_driver(clk_mt8183_mm_drv);
builtin_platform_driver(clk_mt8183_mm_drv);
...@@ -60,5 +60,4 @@ static struct platform_driver clk_mt8183_vdec_drv = { ...@@ -60,5 +60,4 @@ static struct platform_driver clk_mt8183_vdec_drv = {
.of_match_table = of_match_clk_mt8183_vdec, .of_match_table = of_match_clk_mt8183_vdec,
}, },
}; };
module_platform_driver(clk_mt8183_vdec_drv);
builtin_platform_driver(clk_mt8183_vdec_drv);
...@@ -52,5 +52,4 @@ static struct platform_driver clk_mt8183_venc_drv = { ...@@ -52,5 +52,4 @@ static struct platform_driver clk_mt8183_venc_drv = {
.of_match_table = of_match_clk_mt8183_venc, .of_match_table = of_match_clk_mt8183_venc,
}, },
}; };
module_platform_driver(clk_mt8183_venc_drv);
builtin_platform_driver(clk_mt8183_venc_drv);
...@@ -192,4 +192,4 @@ static struct platform_driver clk_mt8186_apmixed_drv = { ...@@ -192,4 +192,4 @@ static struct platform_driver clk_mt8186_apmixed_drv = {
.of_match_table = of_match_clk_mt8186_apmixed, .of_match_table = of_match_clk_mt8186_apmixed,
}, },
}; };
builtin_platform_driver(clk_mt8186_apmixed_drv); module_platform_driver(clk_mt8186_apmixed_drv);
...@@ -87,4 +87,4 @@ static struct platform_driver clk_mt8186_cam_drv = { ...@@ -87,4 +87,4 @@ static struct platform_driver clk_mt8186_cam_drv = {
.of_match_table = of_match_clk_mt8186_cam, .of_match_table = of_match_clk_mt8186_cam,
}, },
}; };
builtin_platform_driver(clk_mt8186_cam_drv); module_platform_driver(clk_mt8186_cam_drv);
...@@ -65,4 +65,4 @@ static struct platform_driver clk_mt8186_img_drv = { ...@@ -65,4 +65,4 @@ static struct platform_driver clk_mt8186_img_drv = {
.of_match_table = of_match_clk_mt8186_img, .of_match_table = of_match_clk_mt8186_img,
}, },
}; };
builtin_platform_driver(clk_mt8186_img_drv); module_platform_driver(clk_mt8186_img_drv);
...@@ -64,4 +64,4 @@ static struct platform_driver clk_mt8186_imp_iic_wrap_drv = { ...@@ -64,4 +64,4 @@ static struct platform_driver clk_mt8186_imp_iic_wrap_drv = {
.of_match_table = of_match_clk_mt8186_imp_iic_wrap, .of_match_table = of_match_clk_mt8186_imp_iic_wrap,
}, },
}; };
builtin_platform_driver(clk_mt8186_imp_iic_wrap_drv); module_platform_driver(clk_mt8186_imp_iic_wrap_drv);
...@@ -236,4 +236,4 @@ static struct platform_driver clk_mt8186_infra_ao_drv = { ...@@ -236,4 +236,4 @@ static struct platform_driver clk_mt8186_infra_ao_drv = {
.of_match_table = of_match_clk_mt8186_infra_ao, .of_match_table = of_match_clk_mt8186_infra_ao,
}, },
}; };
builtin_platform_driver(clk_mt8186_infra_ao_drv); module_platform_driver(clk_mt8186_infra_ao_drv);
...@@ -52,4 +52,4 @@ static struct platform_driver clk_mt8186_ipe_drv = { ...@@ -52,4 +52,4 @@ static struct platform_driver clk_mt8186_ipe_drv = {
.of_match_table = of_match_clk_mt8186_ipe, .of_match_table = of_match_clk_mt8186_ipe,
}, },
}; };
builtin_platform_driver(clk_mt8186_ipe_drv); module_platform_driver(clk_mt8186_ipe_drv);
...@@ -77,4 +77,4 @@ static struct platform_driver clk_mt8186_mdp_drv = { ...@@ -77,4 +77,4 @@ static struct platform_driver clk_mt8186_mdp_drv = {
.of_match_table = of_match_clk_mt8186_mdp, .of_match_table = of_match_clk_mt8186_mdp,
}, },
}; };
builtin_platform_driver(clk_mt8186_mdp_drv); module_platform_driver(clk_mt8186_mdp_drv);
...@@ -46,4 +46,4 @@ static struct platform_driver clk_mt8186_mfg_drv = { ...@@ -46,4 +46,4 @@ static struct platform_driver clk_mt8186_mfg_drv = {
.of_match_table = of_match_clk_mt8186_mfg, .of_match_table = of_match_clk_mt8186_mfg,
}, },
}; };
builtin_platform_driver(clk_mt8186_mfg_drv); module_platform_driver(clk_mt8186_mfg_drv);
...@@ -75,4 +75,4 @@ static struct platform_driver clk_mt8186_mm_drv = { ...@@ -75,4 +75,4 @@ static struct platform_driver clk_mt8186_mm_drv = {
}, },
.id_table = clk_mt8186_mm_id_table, .id_table = clk_mt8186_mm_id_table,
}; };
builtin_platform_driver(clk_mt8186_mm_drv); module_platform_driver(clk_mt8186_mm_drv);
...@@ -730,4 +730,4 @@ static struct platform_driver clk_mt8186_topck_drv = { ...@@ -730,4 +730,4 @@ static struct platform_driver clk_mt8186_topck_drv = {
.of_match_table = of_match_clk_mt8186_topck, .of_match_table = of_match_clk_mt8186_topck,
}, },
}; };
builtin_platform_driver(clk_mt8186_topck_drv); module_platform_driver(clk_mt8186_topck_drv);
...@@ -85,4 +85,4 @@ static struct platform_driver clk_mt8186_vdec_drv = { ...@@ -85,4 +85,4 @@ static struct platform_driver clk_mt8186_vdec_drv = {
.of_match_table = of_match_clk_mt8186_vdec, .of_match_table = of_match_clk_mt8186_vdec,
}, },
}; };
builtin_platform_driver(clk_mt8186_vdec_drv); module_platform_driver(clk_mt8186_vdec_drv);
...@@ -48,4 +48,4 @@ static struct platform_driver clk_mt8186_venc_drv = { ...@@ -48,4 +48,4 @@ static struct platform_driver clk_mt8186_venc_drv = {
.of_match_table = of_match_clk_mt8186_venc, .of_match_table = of_match_clk_mt8186_venc,
}, },
}; };
builtin_platform_driver(clk_mt8186_venc_drv); module_platform_driver(clk_mt8186_venc_drv);
...@@ -48,4 +48,4 @@ static struct platform_driver clk_mt8186_wpe_drv = { ...@@ -48,4 +48,4 @@ static struct platform_driver clk_mt8186_wpe_drv = {
.of_match_table = of_match_clk_mt8186_wpe, .of_match_table = of_match_clk_mt8186_wpe,
}, },
}; };
builtin_platform_driver(clk_mt8186_wpe_drv); module_platform_driver(clk_mt8186_wpe_drv);
...@@ -116,5 +116,4 @@ static struct platform_driver clk_mt8192_aud_drv = { ...@@ -116,5 +116,4 @@ static struct platform_driver clk_mt8192_aud_drv = {
.of_match_table = of_match_clk_mt8192_aud, .of_match_table = of_match_clk_mt8192_aud,
}, },
}; };
module_platform_driver(clk_mt8192_aud_drv);
builtin_platform_driver(clk_mt8192_aud_drv);
...@@ -104,5 +104,4 @@ static struct platform_driver clk_mt8192_cam_drv = { ...@@ -104,5 +104,4 @@ static struct platform_driver clk_mt8192_cam_drv = {
.of_match_table = of_match_clk_mt8192_cam, .of_match_table = of_match_clk_mt8192_cam,
}, },
}; };
module_platform_driver(clk_mt8192_cam_drv);
builtin_platform_driver(clk_mt8192_cam_drv);
...@@ -67,5 +67,4 @@ static struct platform_driver clk_mt8192_img_drv = { ...@@ -67,5 +67,4 @@ static struct platform_driver clk_mt8192_img_drv = {
.of_match_table = of_match_clk_mt8192_img, .of_match_table = of_match_clk_mt8192_img,
}, },
}; };
module_platform_driver(clk_mt8192_img_drv);
builtin_platform_driver(clk_mt8192_img_drv);
...@@ -116,5 +116,4 @@ static struct platform_driver clk_mt8192_imp_iic_wrap_drv = { ...@@ -116,5 +116,4 @@ static struct platform_driver clk_mt8192_imp_iic_wrap_drv = {
.of_match_table = of_match_clk_mt8192_imp_iic_wrap, .of_match_table = of_match_clk_mt8192_imp_iic_wrap,
}, },
}; };
module_platform_driver(clk_mt8192_imp_iic_wrap_drv);
builtin_platform_driver(clk_mt8192_imp_iic_wrap_drv);
...@@ -54,5 +54,4 @@ static struct platform_driver clk_mt8192_ipe_drv = { ...@@ -54,5 +54,4 @@ static struct platform_driver clk_mt8192_ipe_drv = {
.of_match_table = of_match_clk_mt8192_ipe, .of_match_table = of_match_clk_mt8192_ipe,
}, },
}; };
module_platform_driver(clk_mt8192_ipe_drv);
builtin_platform_driver(clk_mt8192_ipe_drv);
...@@ -79,5 +79,4 @@ static struct platform_driver clk_mt8192_mdp_drv = { ...@@ -79,5 +79,4 @@ static struct platform_driver clk_mt8192_mdp_drv = {
.of_match_table = of_match_clk_mt8192_mdp, .of_match_table = of_match_clk_mt8192_mdp,
}, },
}; };
module_platform_driver(clk_mt8192_mdp_drv);
builtin_platform_driver(clk_mt8192_mdp_drv);
...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt8192_mfg_drv = { ...@@ -49,5 +49,4 @@ static struct platform_driver clk_mt8192_mfg_drv = {
.of_match_table = of_match_clk_mt8192_mfg, .of_match_table = of_match_clk_mt8192_mfg,
}, },
}; };
module_platform_driver(clk_mt8192_mfg_drv);
builtin_platform_driver(clk_mt8192_mfg_drv);
...@@ -98,5 +98,4 @@ static struct platform_driver clk_mt8192_mm_drv = { ...@@ -98,5 +98,4 @@ static struct platform_driver clk_mt8192_mm_drv = {
}, },
.id_table = clk_mt8192_mm_id_table, .id_table = clk_mt8192_mm_id_table,
}; };
module_platform_driver(clk_mt8192_mm_drv);
builtin_platform_driver(clk_mt8192_mm_drv);
...@@ -61,5 +61,4 @@ static struct platform_driver clk_mt8192_msdc_drv = { ...@@ -61,5 +61,4 @@ static struct platform_driver clk_mt8192_msdc_drv = {
.of_match_table = of_match_clk_mt8192_msdc, .of_match_table = of_match_clk_mt8192_msdc,
}, },
}; };
module_platform_driver(clk_mt8192_msdc_drv);
builtin_platform_driver(clk_mt8192_msdc_drv);
...@@ -47,5 +47,4 @@ static struct platform_driver clk_mt8192_scp_adsp_drv = { ...@@ -47,5 +47,4 @@ static struct platform_driver clk_mt8192_scp_adsp_drv = {
.of_match_table = of_match_clk_mt8192_scp_adsp, .of_match_table = of_match_clk_mt8192_scp_adsp,
}, },
}; };
module_platform_driver(clk_mt8192_scp_adsp_drv);
builtin_platform_driver(clk_mt8192_scp_adsp_drv);
...@@ -91,5 +91,4 @@ static struct platform_driver clk_mt8192_vdec_drv = { ...@@ -91,5 +91,4 @@ static struct platform_driver clk_mt8192_vdec_drv = {
.of_match_table = of_match_clk_mt8192_vdec, .of_match_table = of_match_clk_mt8192_vdec,
}, },
}; };
module_platform_driver(clk_mt8192_vdec_drv);
builtin_platform_driver(clk_mt8192_vdec_drv);
...@@ -50,5 +50,4 @@ static struct platform_driver clk_mt8192_venc_drv = { ...@@ -50,5 +50,4 @@ static struct platform_driver clk_mt8192_venc_drv = {
.of_match_table = of_match_clk_mt8192_venc, .of_match_table = of_match_clk_mt8192_venc,
}, },
}; };
module_platform_driver(clk_mt8192_venc_drv);
builtin_platform_driver(clk_mt8192_venc_drv);
...@@ -230,4 +230,4 @@ static struct platform_driver clk_mt8195_apmixed_drv = { ...@@ -230,4 +230,4 @@ static struct platform_driver clk_mt8195_apmixed_drv = {
.of_match_table = of_match_clk_mt8195_apmixed, .of_match_table = of_match_clk_mt8195_apmixed,
}, },
}; };
builtin_platform_driver(clk_mt8195_apmixed_drv); module_platform_driver(clk_mt8195_apmixed_drv);
...@@ -110,4 +110,4 @@ static struct platform_driver clk_mt8195_apusys_pll_drv = { ...@@ -110,4 +110,4 @@ static struct platform_driver clk_mt8195_apusys_pll_drv = {
.of_match_table = of_match_clk_mt8195_apusys_pll, .of_match_table = of_match_clk_mt8195_apusys_pll,
}, },
}; };
builtin_platform_driver(clk_mt8195_apusys_pll_drv); module_platform_driver(clk_mt8195_apusys_pll_drv);
...@@ -140,4 +140,4 @@ static struct platform_driver clk_mt8195_cam_drv = { ...@@ -140,4 +140,4 @@ static struct platform_driver clk_mt8195_cam_drv = {
.of_match_table = of_match_clk_mt8195_cam, .of_match_table = of_match_clk_mt8195_cam,
}, },
}; };
builtin_platform_driver(clk_mt8195_cam_drv); module_platform_driver(clk_mt8195_cam_drv);
...@@ -48,4 +48,4 @@ static struct platform_driver clk_mt8195_ccu_drv = { ...@@ -48,4 +48,4 @@ static struct platform_driver clk_mt8195_ccu_drv = {
.of_match_table = of_match_clk_mt8195_ccu, .of_match_table = of_match_clk_mt8195_ccu,
}, },
}; };
builtin_platform_driver(clk_mt8195_ccu_drv); module_platform_driver(clk_mt8195_ccu_drv);
...@@ -94,4 +94,4 @@ static struct platform_driver clk_mt8195_img_drv = { ...@@ -94,4 +94,4 @@ static struct platform_driver clk_mt8195_img_drv = {
.of_match_table = of_match_clk_mt8195_img, .of_match_table = of_match_clk_mt8195_img,
}, },
}; };
builtin_platform_driver(clk_mt8195_img_drv); module_platform_driver(clk_mt8195_img_drv);
...@@ -64,4 +64,4 @@ static struct platform_driver clk_mt8195_imp_iic_wrap_drv = { ...@@ -64,4 +64,4 @@ static struct platform_driver clk_mt8195_imp_iic_wrap_drv = {
.of_match_table = of_match_clk_mt8195_imp_iic_wrap, .of_match_table = of_match_clk_mt8195_imp_iic_wrap,
}, },
}; };
builtin_platform_driver(clk_mt8195_imp_iic_wrap_drv); module_platform_driver(clk_mt8195_imp_iic_wrap_drv);
...@@ -238,4 +238,4 @@ static struct platform_driver clk_mt8195_infra_ao_drv = { ...@@ -238,4 +238,4 @@ static struct platform_driver clk_mt8195_infra_ao_drv = {
.of_match_table = of_match_clk_mt8195_infra_ao, .of_match_table = of_match_clk_mt8195_infra_ao,
}, },
}; };
builtin_platform_driver(clk_mt8195_infra_ao_drv); module_platform_driver(clk_mt8195_infra_ao_drv);
...@@ -49,4 +49,4 @@ static struct platform_driver clk_mt8195_ipe_drv = { ...@@ -49,4 +49,4 @@ static struct platform_driver clk_mt8195_ipe_drv = {
.of_match_table = of_match_clk_mt8195_ipe, .of_match_table = of_match_clk_mt8195_ipe,
}, },
}; };
builtin_platform_driver(clk_mt8195_ipe_drv); module_platform_driver(clk_mt8195_ipe_drv);
...@@ -47,4 +47,4 @@ static struct platform_driver clk_mt8195_mfg_drv = { ...@@ -47,4 +47,4 @@ static struct platform_driver clk_mt8195_mfg_drv = {
.of_match_table = of_match_clk_mt8195_mfg, .of_match_table = of_match_clk_mt8195_mfg,
}, },
}; };
builtin_platform_driver(clk_mt8195_mfg_drv); module_platform_driver(clk_mt8195_mfg_drv);
...@@ -60,4 +60,4 @@ static struct platform_driver clk_mt8195_peri_ao_drv = { ...@@ -60,4 +60,4 @@ static struct platform_driver clk_mt8195_peri_ao_drv = {
.of_match_table = of_match_clk_mt8195_peri_ao, .of_match_table = of_match_clk_mt8195_peri_ao,
}, },
}; };
builtin_platform_driver(clk_mt8195_peri_ao_drv); module_platform_driver(clk_mt8195_peri_ao_drv);
...@@ -45,4 +45,4 @@ static struct platform_driver clk_mt8195_scp_adsp_drv = { ...@@ -45,4 +45,4 @@ static struct platform_driver clk_mt8195_scp_adsp_drv = {
.of_match_table = of_match_clk_mt8195_scp_adsp, .of_match_table = of_match_clk_mt8195_scp_adsp,
}, },
}; };
builtin_platform_driver(clk_mt8195_scp_adsp_drv); module_platform_driver(clk_mt8195_scp_adsp_drv);
...@@ -1340,4 +1340,4 @@ static struct platform_driver clk_mt8195_topck_drv = { ...@@ -1340,4 +1340,4 @@ static struct platform_driver clk_mt8195_topck_drv = {
.of_match_table = of_match_clk_mt8195_topck, .of_match_table = of_match_clk_mt8195_topck,
}, },
}; };
builtin_platform_driver(clk_mt8195_topck_drv); module_platform_driver(clk_mt8195_topck_drv);
...@@ -102,4 +102,4 @@ static struct platform_driver clk_mt8195_vdec_drv = { ...@@ -102,4 +102,4 @@ static struct platform_driver clk_mt8195_vdec_drv = {
.of_match_table = of_match_clk_mt8195_vdec, .of_match_table = of_match_clk_mt8195_vdec,
}, },
}; };
builtin_platform_driver(clk_mt8195_vdec_drv); module_platform_driver(clk_mt8195_vdec_drv);
...@@ -102,6 +102,7 @@ static const struct platform_device_id clk_mt8195_vdo0_id_table[] = { ...@@ -102,6 +102,7 @@ static const struct platform_device_id clk_mt8195_vdo0_id_table[] = {
{ .name = "clk-mt8195-vdo0", .driver_data = (kernel_ulong_t)&vdo0_desc }, { .name = "clk-mt8195-vdo0", .driver_data = (kernel_ulong_t)&vdo0_desc },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(platform, clk_mt8195_vdo0_id_table);
static struct platform_driver clk_mt8195_vdo0_drv = { static struct platform_driver clk_mt8195_vdo0_drv = {
.probe = mtk_clk_pdev_probe, .probe = mtk_clk_pdev_probe,
...@@ -111,4 +112,4 @@ static struct platform_driver clk_mt8195_vdo0_drv = { ...@@ -111,4 +112,4 @@ static struct platform_driver clk_mt8195_vdo0_drv = {
}, },
.id_table = clk_mt8195_vdo0_id_table, .id_table = clk_mt8195_vdo0_id_table,
}; };
builtin_platform_driver(clk_mt8195_vdo0_drv); module_platform_driver(clk_mt8195_vdo0_drv);
...@@ -129,6 +129,7 @@ static const struct platform_device_id clk_mt8195_vdo1_id_table[] = { ...@@ -129,6 +129,7 @@ static const struct platform_device_id clk_mt8195_vdo1_id_table[] = {
{ .name = "clk-mt8195-vdo1", .driver_data = (kernel_ulong_t)&vdo1_desc }, { .name = "clk-mt8195-vdo1", .driver_data = (kernel_ulong_t)&vdo1_desc },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(platform, clk_mt8195_vdo1_id_table);
static struct platform_driver clk_mt8195_vdo1_drv = { static struct platform_driver clk_mt8195_vdo1_drv = {
.probe = mtk_clk_pdev_probe, .probe = mtk_clk_pdev_probe,
...@@ -138,4 +139,4 @@ static struct platform_driver clk_mt8195_vdo1_drv = { ...@@ -138,4 +139,4 @@ static struct platform_driver clk_mt8195_vdo1_drv = {
}, },
.id_table = clk_mt8195_vdo1_id_table, .id_table = clk_mt8195_vdo1_id_table,
}; };
builtin_platform_driver(clk_mt8195_vdo1_drv); module_platform_driver(clk_mt8195_vdo1_drv);
...@@ -67,4 +67,4 @@ static struct platform_driver clk_mt8195_venc_drv = { ...@@ -67,4 +67,4 @@ static struct platform_driver clk_mt8195_venc_drv = {
.of_match_table = of_match_clk_mt8195_venc, .of_match_table = of_match_clk_mt8195_venc,
}, },
}; };
builtin_platform_driver(clk_mt8195_venc_drv); module_platform_driver(clk_mt8195_venc_drv);
...@@ -104,4 +104,4 @@ static struct platform_driver clk_mt8195_vpp0_drv = { ...@@ -104,4 +104,4 @@ static struct platform_driver clk_mt8195_vpp0_drv = {
}, },
.id_table = clk_mt8195_vpp0_id_table, .id_table = clk_mt8195_vpp0_id_table,
}; };
builtin_platform_driver(clk_mt8195_vpp0_drv); module_platform_driver(clk_mt8195_vpp0_drv);
...@@ -102,4 +102,4 @@ static struct platform_driver clk_mt8195_vpp1_drv = { ...@@ -102,4 +102,4 @@ static struct platform_driver clk_mt8195_vpp1_drv = {
}, },
.id_table = clk_mt8195_vpp1_id_table, .id_table = clk_mt8195_vpp1_id_table,
}; };
builtin_platform_driver(clk_mt8195_vpp1_drv); module_platform_driver(clk_mt8195_vpp1_drv);
...@@ -141,4 +141,4 @@ static struct platform_driver clk_mt8195_wpe_drv = { ...@@ -141,4 +141,4 @@ static struct platform_driver clk_mt8195_wpe_drv = {
.of_match_table = of_match_clk_mt8195_wpe, .of_match_table = of_match_clk_mt8195_wpe,
}, },
}; };
builtin_platform_driver(clk_mt8195_wpe_drv); module_platform_driver(clk_mt8195_wpe_drv);
...@@ -51,5 +51,5 @@ static struct platform_driver clk_mt8365_apu_drv = { ...@@ -51,5 +51,5 @@ static struct platform_driver clk_mt8365_apu_drv = {
.of_match_table = of_match_clk_mt8365_apu, .of_match_table = of_match_clk_mt8365_apu,
}, },
}; };
builtin_platform_driver(clk_mt8365_apu_drv); module_platform_driver(clk_mt8365_apu_drv);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -53,5 +53,5 @@ static struct platform_driver clk_mt8365_cam_drv = { ...@@ -53,5 +53,5 @@ static struct platform_driver clk_mt8365_cam_drv = {
.of_match_table = of_match_clk_mt8365_cam, .of_match_table = of_match_clk_mt8365_cam,
}, },
}; };
builtin_platform_driver(clk_mt8365_cam_drv); module_platform_driver(clk_mt8365_cam_drv);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -59,5 +59,5 @@ static struct platform_driver clk_mt8365_mfg_drv = { ...@@ -59,5 +59,5 @@ static struct platform_driver clk_mt8365_mfg_drv = {
.of_match_table = of_match_clk_mt8365_mfg, .of_match_table = of_match_clk_mt8365_mfg,
}, },
}; };
builtin_platform_driver(clk_mt8365_mfg_drv); module_platform_driver(clk_mt8365_mfg_drv);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -90,5 +90,5 @@ static struct platform_driver clk_mt8365_mm_drv = { ...@@ -90,5 +90,5 @@ static struct platform_driver clk_mt8365_mm_drv = {
}, },
.id_table = clk_mt8365_mm_id_table, .id_table = clk_mt8365_mm_id_table,
}; };
builtin_platform_driver(clk_mt8365_mm_drv); module_platform_driver(clk_mt8365_mm_drv);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -59,5 +59,5 @@ static struct platform_driver clk_mt8365_vdec_drv = { ...@@ -59,5 +59,5 @@ static struct platform_driver clk_mt8365_vdec_drv = {
.of_match_table = of_match_clk_mt8365_vdec, .of_match_table = of_match_clk_mt8365_vdec,
}, },
}; };
builtin_platform_driver(clk_mt8365_vdec_drv); module_platform_driver(clk_mt8365_vdec_drv);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -48,5 +48,5 @@ static struct platform_driver clk_mt8365_venc_drv = { ...@@ -48,5 +48,5 @@ static struct platform_driver clk_mt8365_venc_drv = {
.of_match_table = of_match_clk_mt8365_venc, .of_match_table = of_match_clk_mt8365_venc,
}, },
}; };
builtin_platform_driver(clk_mt8365_venc_drv); module_platform_driver(clk_mt8365_venc_drv);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -60,7 +60,7 @@ static struct platform_driver clk_mt8516_aud_drv = { ...@@ -60,7 +60,7 @@ static struct platform_driver clk_mt8516_aud_drv = {
.of_match_table = of_match_clk_mt8516_aud, .of_match_table = of_match_clk_mt8516_aud,
}, },
}; };
builtin_platform_driver(clk_mt8516_aud_drv); module_platform_driver(clk_mt8516_aud_drv);
MODULE_DESCRIPTION("MediaTek MT8516 audiosys clocks driver"); MODULE_DESCRIPTION("MediaTek MT8516 audiosys clocks driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
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