summaryrefslogtreecommitdiffstats
path: root/drivers/clk/mediatek/clk-mt8365-mm.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-04-30 21:02:32 +0200
committerStephen Boyd <sboyd@kernel.org>2023-05-10 13:36:03 -0700
commitb3bc72757e63dbbb3abdb0ab8a4ccf3d9b081cce (patch)
treef3bf3ad68f1c133c0219bb66c8fb3771b3186a60 /drivers/clk/mediatek/clk-mt8365-mm.c
parent61ca6ee782435a50f5ee816aa219dfa9ccc97c9a (diff)
downloadlinux-stable-b3bc72757e63dbbb3abdb0ab8a4ccf3d9b081cce.tar.gz
linux-stable-b3bc72757e63dbbb3abdb0ab8a4ccf3d9b081cce.tar.bz2
linux-stable-b3bc72757e63dbbb3abdb0ab8a4ccf3d9b081cce.zip
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 <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230430190233.878921-3-u.kleine-koenig@pengutronix.de Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt8365-mm.c')
-rw-r--r--drivers/clk/mediatek/clk-mt8365-mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-mt8365-mm.c b/drivers/clk/mediatek/clk-mt8365-mm.c
index 44427120846f..01a2ef8f594e 100644
--- a/drivers/clk/mediatek/clk-mt8365-mm.c
+++ b/drivers/clk/mediatek/clk-mt8365-mm.c
@@ -85,7 +85,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt8365_mm_id_table);
static struct platform_driver clk_mt8365_mm_drv = {
.probe = mtk_clk_pdev_probe,
- .remove = mtk_clk_pdev_remove,
+ .remove_new = mtk_clk_pdev_remove,
.driver = {
.name = "clk-mt8365-mm",
},