Skip to content

Commit b3bc727

Browse files
Uwe Kleine-Königbebarino
authored andcommitted
clk: mediatek: Make mtk_clk_pdev_remove() return void
This function returns 0 unconditionally. Make it 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 61ca6ee commit b3bc727

21 files changed

+21
-23
lines changed

drivers/clk/mediatek/clk-mt2701-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt2701_mm_id_table);
8080

8181
static struct platform_driver clk_mt2701_mm_drv = {
8282
.probe = mtk_clk_pdev_probe,
83-
.remove = mtk_clk_pdev_remove,
83+
.remove_new = mtk_clk_pdev_remove,
8484
.driver = {
8585
.name = "clk-mt2701-mm",
8686
},

drivers/clk/mediatek/clk-mt2712-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt2712_mm_id_table);
121121

122122
static struct platform_driver clk_mt2712_mm_drv = {
123123
.probe = mtk_clk_pdev_probe,
124-
.remove = mtk_clk_pdev_remove,
124+
.remove_new = mtk_clk_pdev_remove,
125125
.driver = {
126126
.name = "clk-mt2712-mm",
127127
},

drivers/clk/mediatek/clk-mt6779-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt6779_mm_id_table);
9898

9999
static struct platform_driver clk_mt6779_mm_drv = {
100100
.probe = mtk_clk_pdev_probe,
101-
.remove = mtk_clk_pdev_remove,
101+
.remove_new = mtk_clk_pdev_remove,
102102
.driver = {
103103
.name = "clk-mt6779-mm",
104104
},

drivers/clk/mediatek/clk-mt6795-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static struct platform_driver clk_mt6795_mm_drv = {
9393
},
9494
.id_table = clk_mt6795_mm_id_table,
9595
.probe = mtk_clk_pdev_probe,
96-
.remove = mtk_clk_pdev_remove,
96+
.remove_new = mtk_clk_pdev_remove,
9797
};
9898
module_platform_driver(clk_mt6795_mm_drv);
9999

drivers/clk/mediatek/clk-mt6797-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt6797_mm_id_table);
9393

9494
static struct platform_driver clk_mt6797_mm_drv = {
9595
.probe = mtk_clk_pdev_probe,
96-
.remove = mtk_clk_pdev_remove,
96+
.remove_new = mtk_clk_pdev_remove,
9797
.driver = {
9898
.name = "clk-mt6797-mm",
9999
},

drivers/clk/mediatek/clk-mt8167-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt8167_mm_id_table);
8787

8888
static struct platform_driver clk_mt8167_mm_drv = {
8989
.probe = mtk_clk_pdev_probe,
90-
.remove = mtk_clk_pdev_remove,
90+
.remove_new = mtk_clk_pdev_remove,
9191
.driver = {
9292
.name = "clk-mt8167-mm",
9393
},

drivers/clk/mediatek/clk-mt8173-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static struct platform_driver clk_mt8173_mm_drv = {
106106
},
107107
.id_table = clk_mt8173_mm_id_table,
108108
.probe = mtk_clk_pdev_probe,
109-
.remove = mtk_clk_pdev_remove,
109+
.remove_new = mtk_clk_pdev_remove,
110110
};
111111
module_platform_driver(clk_mt8173_mm_drv);
112112

drivers/clk/mediatek/clk-mt8183-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt8183_mm_id_table);
9595

9696
static struct platform_driver clk_mt8183_mm_drv = {
9797
.probe = mtk_clk_pdev_probe,
98-
.remove = mtk_clk_pdev_remove,
98+
.remove_new = mtk_clk_pdev_remove,
9999
.driver = {
100100
.name = "clk-mt8183-mm",
101101
},

drivers/clk/mediatek/clk-mt8186-mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt8186_mm_id_table);
7171

7272
static struct platform_driver clk_mt8186_mm_drv = {
7373
.probe = mtk_clk_pdev_probe,
74-
.remove = mtk_clk_pdev_remove,
74+
.remove_new = mtk_clk_pdev_remove,
7575
.driver = {
7676
.name = "clk-mt8186-mm",
7777
},

drivers/clk/mediatek/clk-mt8188-vdo0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt8188_vdo0_id_table);
9797

9898
static struct platform_driver clk_mt8188_vdo0_drv = {
9999
.probe = mtk_clk_pdev_probe,
100-
.remove = mtk_clk_pdev_remove,
100+
.remove_new = mtk_clk_pdev_remove,
101101
.driver = {
102102
.name = "clk-mt8188-vdo0",
103103
},

0 commit comments

Comments
 (0)