[openwrt/openwrt] mediatek: convert driver to .remove_new

LEDE Commits lede-commits at lists.infradead.org
Tue Apr 22 10:22:29 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0adbac6c17e8c80ec5319bc7bce8d4a01ddc609d

commit 0adbac6c17e8c80ec5319bc7bce8d4a01ddc609d
Author: Mieczyslaw Nalewaj <namiltd at yahoo.com>
AuthorDate: Sat Apr 19 12:14:24 2025 +0200

    mediatek: convert driver to .remove_new
    
    Convert driver to .remove_new in preparation for kernel 6.12 support.
    
    Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
    Link: https://github.com/openwrt/openwrt/pull/18535
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c b/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c
index d958d622e0..d70aeebad9 100644
--- a/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c
+++ b/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c
@@ -283,17 +283,15 @@ static int rtk_gsw_probe(struct platform_device *pdev)
 	
 }
 
-static int rtk_gsw_remove(struct platform_device *pdev)
+static void rtk_gsw_remove(struct platform_device *pdev)
 {
 	platform_set_drvdata(pdev, NULL);
 	gsw_debug_proc_exit();
-
-	return 0;
 }
 
 static struct platform_driver gsw_driver = {
 	.probe = rtk_gsw_probe,
-	.remove = rtk_gsw_remove,
+	.remove_new = rtk_gsw_remove,
 	.driver = {
 		.name = "rtk-gsw",
 		.of_match_table = rtk_gsw_match,




More information about the lede-commits mailing list