From: Daniel Golle Date: Sat, 2 Mar 2024 04:24:15 +0000 (+0000) Subject: mediatek: fix build of MT7988 clk drivers on Linux 6.6 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fstintel.git;a=commitdiff_plain;h=3043bd2621a190add88fd51e5b0d7f50e0157a90 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 --- diff --git a/target/linux/mediatek/patches-6.6/249-v6.8-clk-mediatek-add-drivers-for-MT7988-SoC.patch b/target/linux/mediatek/patches-6.6/249-v6.8-clk-mediatek-add-drivers-for-MT7988-SoC.patch index dab08a5a39..6ec9bd2101 100644 --- a/target/linux/mediatek/patches-6.6/249-v6.8-clk-mediatek-add-drivers-for-MT7988-SoC.patch +++ b/target/linux/mediatek/patches-6.6/249-v6.8-clk-mediatek-add-drivers-for-MT7988-SoC.patch @@ -327,7 +327,7 @@ Signed-off-by: Stephen Boyd + .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 + .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 + +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 + .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); +