mediatek: fix build of MT7988 clk drivers on Linux 6.6

As shared remove functions now returns void instead of int we need to
use .remove_new instead of .remove.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2024-03-02 04:24:15 +00:00
parent dcac4a28e6
commit 3043bd2621
1 changed files with 4 additions and 4 deletions

View File

@ -327,7 +327,7 @@ Signed-off-by: Stephen Boyd <sboyd@kernel.org>
+ .of_match_table = of_match_clk_mt7988_eth, + .of_match_table = of_match_clk_mt7988_eth,
+ }, + },
+ .probe = mtk_clk_simple_probe, + .probe = mtk_clk_simple_probe,
+ .remove = mtk_clk_simple_remove, + .remove_new = mtk_clk_simple_remove,
+}; +};
+module_platform_driver(clk_mt7988_eth_drv); +module_platform_driver(clk_mt7988_eth_drv);
+ +
@ -607,7 +607,7 @@ Signed-off-by: Stephen Boyd <sboyd@kernel.org>
+ .of_match_table = of_match_clk_mt7988_infracfg, + .of_match_table = of_match_clk_mt7988_infracfg,
+ }, + },
+ .probe = mtk_clk_simple_probe, + .probe = mtk_clk_simple_probe,
+ .remove = mtk_clk_simple_remove, + .remove_new = mtk_clk_simple_remove,
+}; +};
+module_platform_driver(clk_mt7988_infracfg_drv); +module_platform_driver(clk_mt7988_infracfg_drv);
+MODULE_LICENSE("GPL"); +MODULE_LICENSE("GPL");
@ -931,7 +931,7 @@ Signed-off-by: Stephen Boyd <sboyd@kernel.org>
+ +
+static struct platform_driver clk_mt7988_topckgen_drv = { +static struct platform_driver clk_mt7988_topckgen_drv = {
+ .probe = mtk_clk_simple_probe, + .probe = mtk_clk_simple_probe,
+ .remove = mtk_clk_simple_remove, + .remove_new = mtk_clk_simple_remove,
+ .driver = { + .driver = {
+ .name = "clk-mt7988-topckgen", + .name = "clk-mt7988-topckgen",
+ .of_match_table = of_match_clk_mt7988_topckgen, + .of_match_table = of_match_clk_mt7988_topckgen,
@ -1018,7 +1018,7 @@ Signed-off-by: Stephen Boyd <sboyd@kernel.org>
+ .of_match_table = of_match_clk_mt7988_xfipll, + .of_match_table = of_match_clk_mt7988_xfipll,
+ }, + },
+ .probe = clk_mt7988_xfipll_probe, + .probe = clk_mt7988_xfipll_probe,
+ .remove = mtk_clk_simple_remove, + .remove_new = mtk_clk_simple_remove,
+}; +};
+module_platform_driver(clk_mt7988_xfipll_drv); +module_platform_driver(clk_mt7988_xfipll_drv);
+ +