mediatek: fix build of MT7988 clk drivers on Linux 6.6
authorDaniel Golle <daniel@makrotopia.org>
Sat, 2 Mar 2024 04:24:15 +0000 (04:24 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 11 Mar 2024 21:22:12 +0000 (21:22 +0000)
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>
target/linux/mediatek/patches-6.6/249-v6.8-clk-mediatek-add-drivers-for-MT7988-SoC.patch

index dab08a5a39701ea5387b412855dc4dab8c86a88e..6ec9bd2101ef4df556ade8977dbae7dc8cb02302 100644 (file)
@@ -327,7 +327,7 @@ Signed-off-by: Stephen Boyd <sboyd@kernel.org>
 +              .of_match_table = of_match_clk_mt7988_eth,
 +      },
 +      .probe = mtk_clk_simple_probe,
-+      .remove = mtk_clk_simple_remove,
++      .remove_new = mtk_clk_simple_remove,
 +};
 +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,
 +      },
 +      .probe = mtk_clk_simple_probe,
-+      .remove = mtk_clk_simple_remove,
++      .remove_new = mtk_clk_simple_remove,
 +};
 +module_platform_driver(clk_mt7988_infracfg_drv);
 +MODULE_LICENSE("GPL");
@@ -931,7 +931,7 @@ Signed-off-by: Stephen Boyd <sboyd@kernel.org>
 +
 +static struct platform_driver clk_mt7988_topckgen_drv = {
 +      .probe = mtk_clk_simple_probe,
-+      .remove = mtk_clk_simple_remove,
++      .remove_new = mtk_clk_simple_remove,
 +      .driver = {
 +              .name = "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,
 +      },
 +      .probe = clk_mt7988_xfipll_probe,
-+      .remove = mtk_clk_simple_remove,
++      .remove_new = mtk_clk_simple_remove,
 +};
 +module_platform_driver(clk_mt7988_xfipll_drv);
 +