mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
clk: mediatek: mt8195: Hook up mtk_clk_simple_remove()
Various small clock controllers only have clock gates, and utilize mtk_clk_simple_probe() as their driver probe function. Now that we have a matching remove function, hook it up for the relevant drivers. This was done with the following command: sed -i -e '/mtk_clk_simple_probe/a \ .remove = mtk_clk_simple_remove,' drivers/clk/mediatek/clk-mt8195-*.c Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Miles Chen <miles.chen@mediatek.com> Link: https://lore.kernel.org/r/20220208124034.414635-29-wenst@chromium.org Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Chun-Jie Chen <chun-jie.chen@mediatek.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
2d18b7e31a
commit
cd3a77a085
@ -134,6 +134,7 @@ static const struct of_device_id of_match_clk_mt8195_cam[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_cam_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-cam",
|
||||
.of_match_table = of_match_clk_mt8195_cam,
|
||||
|
@ -42,6 +42,7 @@ static const struct of_device_id of_match_clk_mt8195_ccu[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_ccu_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-ccu",
|
||||
.of_match_table = of_match_clk_mt8195_ccu,
|
||||
|
@ -88,6 +88,7 @@ static const struct of_device_id of_match_clk_mt8195_img[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_img_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-img",
|
||||
.of_match_table = of_match_clk_mt8195_img,
|
||||
|
@ -58,6 +58,7 @@ static const struct of_device_id of_match_clk_mt8195_imp_iic_wrap[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_imp_iic_wrap_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-imp_iic_wrap",
|
||||
.of_match_table = of_match_clk_mt8195_imp_iic_wrap,
|
||||
|
@ -198,6 +198,7 @@ static const struct of_device_id of_match_clk_mt8195_infra_ao[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_infra_ao_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-infra_ao",
|
||||
.of_match_table = of_match_clk_mt8195_infra_ao,
|
||||
|
@ -43,6 +43,7 @@ static const struct of_device_id of_match_clk_mt8195_ipe[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_ipe_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-ipe",
|
||||
.of_match_table = of_match_clk_mt8195_ipe,
|
||||
|
@ -39,6 +39,7 @@ static const struct of_device_id of_match_clk_mt8195_mfg[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_mfg_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-mfg",
|
||||
.of_match_table = of_match_clk_mt8195_mfg,
|
||||
|
@ -54,6 +54,7 @@ static const struct of_device_id of_match_clk_mt8195_peri_ao[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_peri_ao_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-peri_ao",
|
||||
.of_match_table = of_match_clk_mt8195_peri_ao,
|
||||
|
@ -39,6 +39,7 @@ static const struct of_device_id of_match_clk_mt8195_scp_adsp[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_scp_adsp_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-scp_adsp",
|
||||
.of_match_table = of_match_clk_mt8195_scp_adsp,
|
||||
|
@ -96,6 +96,7 @@ static const struct of_device_id of_match_clk_mt8195_vdec[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_vdec_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-vdec",
|
||||
.of_match_table = of_match_clk_mt8195_vdec,
|
||||
|
@ -61,6 +61,7 @@ static const struct of_device_id of_match_clk_mt8195_venc[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_venc_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-venc",
|
||||
.of_match_table = of_match_clk_mt8195_venc,
|
||||
|
@ -102,6 +102,7 @@ static const struct of_device_id of_match_clk_mt8195_vpp0[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_vpp0_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-vpp0",
|
||||
.of_match_table = of_match_clk_mt8195_vpp0,
|
||||
|
@ -100,6 +100,7 @@ static const struct of_device_id of_match_clk_mt8195_vpp1[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_vpp1_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-vpp1",
|
||||
.of_match_table = of_match_clk_mt8195_vpp1,
|
||||
|
@ -135,6 +135,7 @@ static const struct of_device_id of_match_clk_mt8195_wpe[] = {
|
||||
|
||||
static struct platform_driver clk_mt8195_wpe_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt8195-wpe",
|
||||
.of_match_table = of_match_clk_mt8195_wpe,
|
||||
|
Loading…
Reference in New Issue
Block a user