Commit b3bc7275 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Stephen Boyd
Browse files

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: default avatarUwe 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: default avatarStephen Boyd <sboyd@kernel.org>
parent 61ca6ee7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt2701_mm_id_table);

static struct platform_driver clk_mt2701_mm_drv = {
	.probe = mtk_clk_pdev_probe,
	.remove = mtk_clk_pdev_remove,
	.remove_new = mtk_clk_pdev_remove,
	.driver = {
		.name = "clk-mt2701-mm",
	},
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt2712_mm_id_table);

static struct platform_driver clk_mt2712_mm_drv = {
	.probe = mtk_clk_pdev_probe,
	.remove = mtk_clk_pdev_remove,
	.remove_new = mtk_clk_pdev_remove,
	.driver = {
		.name = "clk-mt2712-mm",
	},
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt6779_mm_id_table);

static struct platform_driver clk_mt6779_mm_drv = {
	.probe = mtk_clk_pdev_probe,
	.remove = mtk_clk_pdev_remove,
	.remove_new = mtk_clk_pdev_remove,
	.driver = {
		.name = "clk-mt6779-mm",
	},
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ static struct platform_driver clk_mt6795_mm_drv = {
	},
	.id_table = clk_mt6795_mm_id_table,
	.probe = mtk_clk_pdev_probe,
	.remove = mtk_clk_pdev_remove,
	.remove_new = mtk_clk_pdev_remove,
};
module_platform_driver(clk_mt6795_mm_drv);

+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ MODULE_DEVICE_TABLE(platform, clk_mt6797_mm_id_table);

static struct platform_driver clk_mt6797_mm_drv = {
	.probe = mtk_clk_pdev_probe,
	.remove = mtk_clk_pdev_remove,
	.remove_new = mtk_clk_pdev_remove,
	.driver = {
		.name = "clk-mt6797-mm",
	},
Loading