Skip to content

Commit cd3a77a

Browse files
wensbebarino
authored andcommitted
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>
1 parent 2d18b7e commit cd3a77a

14 files changed

+14
-0
lines changed

drivers/clk/mediatek/clk-mt8195-cam.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ static const struct of_device_id of_match_clk_mt8195_cam[] = {
134134

135135
static struct platform_driver clk_mt8195_cam_drv = {
136136
.probe = mtk_clk_simple_probe,
137+
.remove = mtk_clk_simple_remove,
137138
.driver = {
138139
.name = "clk-mt8195-cam",
139140
.of_match_table = of_match_clk_mt8195_cam,

drivers/clk/mediatek/clk-mt8195-ccu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static const struct of_device_id of_match_clk_mt8195_ccu[] = {
4242

4343
static struct platform_driver clk_mt8195_ccu_drv = {
4444
.probe = mtk_clk_simple_probe,
45+
.remove = mtk_clk_simple_remove,
4546
.driver = {
4647
.name = "clk-mt8195-ccu",
4748
.of_match_table = of_match_clk_mt8195_ccu,

drivers/clk/mediatek/clk-mt8195-img.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ static const struct of_device_id of_match_clk_mt8195_img[] = {
8888

8989
static struct platform_driver clk_mt8195_img_drv = {
9090
.probe = mtk_clk_simple_probe,
91+
.remove = mtk_clk_simple_remove,
9192
.driver = {
9293
.name = "clk-mt8195-img",
9394
.of_match_table = of_match_clk_mt8195_img,

drivers/clk/mediatek/clk-mt8195-imp_iic_wrap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ static const struct of_device_id of_match_clk_mt8195_imp_iic_wrap[] = {
5858

5959
static struct platform_driver clk_mt8195_imp_iic_wrap_drv = {
6060
.probe = mtk_clk_simple_probe,
61+
.remove = mtk_clk_simple_remove,
6162
.driver = {
6263
.name = "clk-mt8195-imp_iic_wrap",
6364
.of_match_table = of_match_clk_mt8195_imp_iic_wrap,

drivers/clk/mediatek/clk-mt8195-infra_ao.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ static const struct of_device_id of_match_clk_mt8195_infra_ao[] = {
198198

199199
static struct platform_driver clk_mt8195_infra_ao_drv = {
200200
.probe = mtk_clk_simple_probe,
201+
.remove = mtk_clk_simple_remove,
201202
.driver = {
202203
.name = "clk-mt8195-infra_ao",
203204
.of_match_table = of_match_clk_mt8195_infra_ao,

drivers/clk/mediatek/clk-mt8195-ipe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ static const struct of_device_id of_match_clk_mt8195_ipe[] = {
4343

4444
static struct platform_driver clk_mt8195_ipe_drv = {
4545
.probe = mtk_clk_simple_probe,
46+
.remove = mtk_clk_simple_remove,
4647
.driver = {
4748
.name = "clk-mt8195-ipe",
4849
.of_match_table = of_match_clk_mt8195_ipe,

drivers/clk/mediatek/clk-mt8195-mfg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static const struct of_device_id of_match_clk_mt8195_mfg[] = {
3939

4040
static struct platform_driver clk_mt8195_mfg_drv = {
4141
.probe = mtk_clk_simple_probe,
42+
.remove = mtk_clk_simple_remove,
4243
.driver = {
4344
.name = "clk-mt8195-mfg",
4445
.of_match_table = of_match_clk_mt8195_mfg,

drivers/clk/mediatek/clk-mt8195-peri_ao.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static const struct of_device_id of_match_clk_mt8195_peri_ao[] = {
5454

5555
static struct platform_driver clk_mt8195_peri_ao_drv = {
5656
.probe = mtk_clk_simple_probe,
57+
.remove = mtk_clk_simple_remove,
5758
.driver = {
5859
.name = "clk-mt8195-peri_ao",
5960
.of_match_table = of_match_clk_mt8195_peri_ao,

drivers/clk/mediatek/clk-mt8195-scp_adsp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static const struct of_device_id of_match_clk_mt8195_scp_adsp[] = {
3939

4040
static struct platform_driver clk_mt8195_scp_adsp_drv = {
4141
.probe = mtk_clk_simple_probe,
42+
.remove = mtk_clk_simple_remove,
4243
.driver = {
4344
.name = "clk-mt8195-scp_adsp",
4445
.of_match_table = of_match_clk_mt8195_scp_adsp,

drivers/clk/mediatek/clk-mt8195-vdec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ static const struct of_device_id of_match_clk_mt8195_vdec[] = {
9696

9797
static struct platform_driver clk_mt8195_vdec_drv = {
9898
.probe = mtk_clk_simple_probe,
99+
.remove = mtk_clk_simple_remove,
99100
.driver = {
100101
.name = "clk-mt8195-vdec",
101102
.of_match_table = of_match_clk_mt8195_vdec,

0 commit comments

Comments
 (0)