]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: update drivers to be compatible with kernel 6.12 and above 19320/head
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Sun, 6 Jul 2025 12:50:59 +0000 (14:50 +0200)
committerNick Hainke <vincent@systemli.org>
Mon, 7 Jul 2025 18:30:26 +0000 (20:30 +0200)
Replace .remove_new with .remove for compatibility with future kernel versions.
Dropping compatibility with older kernels.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/19320
Signed-off-by: Nick Hainke <vincent@systemli.org>
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c

index 9cd6fc456c0a43e523bc1c425335ec6856489688..0d77db511bf9751d222bf581149405a2c1bd2958 100644 (file)
@@ -1521,7 +1521,7 @@ int rt3050_esw_init(struct fe_priv *priv)
 
 static struct platform_driver esw_driver = {
        .probe = esw_probe,
-       .remove_new = esw_remove,
+       .remove = esw_remove,
        .driver = {
                .name = "rt3050-esw",
                .of_match_table = ralink_esw_match,
index ad0b2007aff8015947be12f788ecbc2cf3ddbbf9..750fd94d3ff2b539d642a5b510d2aca8b991f1ec 100644 (file)
@@ -292,7 +292,7 @@ static void mt7620_gsw_remove(struct platform_device *pdev)
 
 static struct platform_driver gsw_driver = {
        .probe = mt7620_gsw_probe,
-       .remove_new = mt7620_gsw_remove,
+       .remove = mt7620_gsw_remove,
        .driver = {
                .name = "mt7620-gsw",
                .of_match_table = mediatek_gsw_match,
index 5a8e92ab12169df953909c996f30601e03c9e0ca..9bf486381fd7877411df42d42f2a29288f9e6847 100644 (file)
@@ -1652,7 +1652,7 @@ static void fe_remove(struct platform_device *pdev)
 
 static struct platform_driver fe_driver = {
        .probe = fe_probe,
-       .remove_new = fe_remove,
+       .remove = fe_remove,
        .driver = {
                .name = "mtk_soc_eth",
                .of_match_table = of_fe_match,