]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
treewide: replace remove_new with remove 21226/head
authorRosen Penev <rosenp@gmail.com>
Fri, 19 Dec 2025 23:33:50 +0000 (15:33 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 Jan 2026 16:27:25 +0000 (17:27 +0100)
Preparation for kernel 6.18. It removes the former.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21226
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
29 files changed:
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
package/kernel/lantiq/ltq-adsl/patches/120-platform.patch
package/kernel/lantiq/ltq-atm/src/ltq_atm.c
package/kernel/lantiq/ltq-deu/src/ifxmips_deu.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c
package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/133-convert-platform-driver-.remove-to-.remove_new.patch
package/kernel/lantiq/ltq-vdsl-vr9-mei/patches/405-convert-platform-driver-.remove-to-.remove_new.patch
package/kernel/ubootenv-nvram/src/ubootenv-nvram.c
target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c
target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_legacy_mdio.c
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6348-enet.c
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c
target/linux/generic/files/drivers/net/phy/adm6996.c
target/linux/generic/files/drivers/net/phy/b53/b53_mmap.c
target/linux/generic/files/drivers/net/phy/b53/b53_srab.c
target/linux/generic/files/drivers/net/phy/rtl8366rb.c
target/linux/generic/files/drivers/net/phy/rtl8366s.c
target/linux/generic/files/drivers/net/phy/rtl8367.c
target/linux/generic/files/drivers/net/phy/rtl8367b.c
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c
target/linux/ramips/files/drivers/dma/mediatek/hsdma-mt7621.c
target/linux/ramips/files/drivers/dma/ralink-gdma.c
target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c
target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c

index d0e372331102ad2d6a6de5378ccb56d4173c793a..f38423dc324489473cf012c46c11d9de9cc6c3d3 100644 (file)
@@ -681,7 +681,7 @@ static void gpio_keys_remove(struct platform_device *pdev)
 
 static struct platform_driver gpio_keys_driver = {
        .probe  = gpio_keys_probe,
-       .remove_new = gpio_keys_remove,
+       .remove = gpio_keys_remove,
        .driver = {
                .name   = "gpio-keys",
                .of_match_table = of_match_ptr(gpio_keys_of_match),
@@ -690,7 +690,7 @@ static struct platform_driver gpio_keys_driver = {
 
 static struct platform_driver gpio_keys_polled_driver = {
        .probe  = gpio_keys_polled_probe,
-       .remove_new = gpio_keys_remove,
+       .remove = gpio_keys_remove,
        .driver = {
                .name   = "gpio-keys-polled",
                .of_match_table = of_match_ptr(gpio_keys_polled_of_match),
index 024d45d62c4405026928f2776e97fcfe873fe1f0..8d3cbe7054f28e5a4bf86659a8e0c8870cd2618d 100644 (file)
@@ -2808,8 +2808,8 @@ static const struct of_device_id ltq_mei_match[] = {
 };
 
 static struct platform_driver ltq_mei_driver = {
-       .probe = ltq_mei_probe,
-       .remove_new = ltq_mei_remove,
+       .probe  = ltq_mei_probe,
+       .remove = ltq_mei_remove,
        .driver = {
                .name = "lantiq,mei-xway",
                .of_match_table = ltq_mei_match,
index 48ffa8cb83a8cdfb88472471b2bdf2b3b385b8e1..a858ba79de744cd4ef346e967d4f8aa9ba233f3a 100644 (file)
@@ -55,8 +55,8 @@
 +MODULE_DEVICE_TABLE(of, ltq_adsl_match);
 +
 +static struct platform_driver ltq_adsl_driver = {
-+      .probe = ltq_adsl_probe,
-+      .remove_new = ltq_adsl_remove,
++      .probe  = ltq_adsl_probe,
++      .remove = ltq_adsl_remove,
 +      .driver = {
 +              .name = "adsl",
 +              .of_match_table = ltq_adsl_match,
index d97dadba685dea5b04d7995450f615803b499e63..f488aea7331537e3b6f8311ce09d3fd039a64689 100644 (file)
@@ -1884,8 +1884,8 @@ static void ltq_atm_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver ltq_atm_driver = {
-       .probe = ltq_atm_probe,
-       .remove_new = ltq_atm_remove,
+       .probe  = ltq_atm_probe,
+       .remove = ltq_atm_remove,
        .driver = {
                .name = "atm",
                .of_match_table = ltq_atm_match,
index 33157f894239657bfe3aef339b30589603677f8a..fa981d720722c9cb6626a6548df00666bfadc3cc 100644 (file)
@@ -190,8 +190,8 @@ MODULE_DEVICE_TABLE(of, ltq_deu_match);
 
 
 static struct platform_driver ltq_deu_driver = {
-       .probe = ltq_deu_probe,
-       .remove_new = ltq_deu_remove,
+       .probe  = ltq_deu_probe,
+       .remove = ltq_deu_remove,
        .driver = {
                .name = "deu",
                .of_match_table = ltq_deu_match,
index 527066f54fa56b0088c785c25d37088da2da8e43..48506d28ca653e5e17a91b4723cf241c33b24f71 100644 (file)
@@ -499,7 +499,7 @@ static int ptm_ioctl(struct net_device *dev, struct ifreq *ifr, void __user *dat
     case IFX_PTM_MIB_FRAME_GET:
         {
             PTM_FRAME_MIB_T tmp = {0};
-    
+
             tmp.RxCorrect   = WAN_MIB_TABLE[ndev].wrx_correct_pdu;
             tmp.TC_CrcError = WAN_MIB_TABLE[ndev].wrx_tccrc_err_pdu;
             tmp.RxDropped   = WAN_MIB_TABLE[ndev].wrx_nodesc_drop_pdu + WAN_MIB_TABLE[ndev].wrx_len_violation_drop_pdu;
@@ -1632,8 +1632,8 @@ static void ltq_ptm_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver ltq_ptm_driver = {
-       .probe = ltq_ptm_probe,
-       .remove_new = ltq_ptm_remove,
+       .probe  = ltq_ptm_probe,
+       .remove = ltq_ptm_remove,
        .driver = {
                .name = "ptm",
                .of_match_table = ltq_ptm_match,
index faa4ed6938b7e6175cd04c4980d9e1626b577f82..e020d531fe6efebfb302b8944fd8225338780198 100644 (file)
@@ -1166,8 +1166,8 @@ static int __init queue_gamma_map_setup(char *line)
 }
 #endif
 static struct platform_driver ltq_ptm_driver = {
-       .probe = ltq_ptm_probe,
-       .remove_new = ltq_ptm_remove,
+       .probe  = ltq_ptm_probe,
+       .remove = ltq_ptm_remove,
        .driver = {
                .name = "ptm",
                .of_match_table = ltq_ptm_match,
index 0ad2ab72b0b2e251e0ac1ff7e3dd06d53d954580..bd34a645a2ecb1e402323adedaab6dd09b5f9b36 100644 (file)
@@ -32,12 +32,3 @@ Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
  }
  
  static const struct of_device_id ltq_dsl_cpe_mei_match[] = {
-@@ -2267,7 +2266,7 @@ static struct platform_driver ltq_dsl_cp
-       .owner          = THIS_MODULE,
-       .of_match_table = ltq_dsl_cpe_mei_match,
-    },
--   .remove = ltq_dsl_cpe_mei_remove,
-+   .remove_new = ltq_dsl_cpe_mei_remove,
- };
- static int ltq_dsl_cpe_mei_reboot_notifier(struct notifier_block *nb,
index 9e64e689b61e18291de38bd4b01876c816a18ed0..186fdbaeb7dcb32317b86788c30bafb318cca280 100644 (file)
@@ -30,12 +30,3 @@ Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
  }
  
  static const struct of_device_id ltq_dsl_cpe_mei_match[] = {
-@@ -2070,7 +2069,7 @@ static struct platform_driver ltq_dsl_cp
-       .owner          = THIS_MODULE,
-       .of_match_table = ltq_dsl_cpe_mei_match,
-    },
--   .remove = __exit_p(ltq_dsl_cpe_mei_remove),
-+   .remove_new = __exit_p(ltq_dsl_cpe_mei_remove),
- };
- static int __init ltq_dsl_cpe_mei_probe(struct platform_device *pdev)
index ba1d7973f1810524b852958c97a80f4d128fe5a7..f6fc5e1165877712a8ea29f68701914cf1e36718 100644 (file)
@@ -141,8 +141,8 @@ static void ubootenv_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver ubootenv_driver = {
-       .probe = ubootenv_probe,
-       .remove_new = ubootenv_remove,
+       .probe  = ubootenv_probe,
+       .remove = ubootenv_remove,
        .driver = {
                .name           = NAME,
                .of_match_table = of_ubootenv_match,
index 9b40706cdd64d1268c306b9d5f52e7b854484428..4fe9457b291f5d9f76e843b6a6d2fba13d77cd33 100644 (file)
@@ -1470,8 +1470,8 @@ static const struct of_device_id ar934x_nfc_match[] = {
 MODULE_DEVICE_TABLE(of, ar934x_nfc_match);
 
 static struct platform_driver ar934x_nfc_driver = {
-       .probe          = ar934x_nfc_probe,
-       .remove_new     = ar934x_nfc_remove,
+       .probe  = ar934x_nfc_probe,
+       .remove = ar934x_nfc_remove,
        .driver = {
                .name   = AR934X_NFC_DRIVER_NAME,
                .of_match_table = ar934x_nfc_match,
index e475105170960a0c7065b3973f5fcb692d527969..4749e9f050548aaa6e4e85c104b6a89ea789180f 100644 (file)
@@ -223,8 +223,8 @@ static void rb4xx_nand_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver rb4xx_nand_driver = {
-       .probe = rb4xx_nand_probe,
-       .remove_new = rb4xx_nand_remove,
+       .probe  = rb4xx_nand_probe,
+       .remove = rb4xx_nand_remove,
        .driver = {
                .name = "rb4xx-nand",
        },
index 8a154c351463e9e83ccb739614ededc3c0e07ea0..801cb89778f63c84754929daa26e0ab69b756d11 100644 (file)
@@ -351,7 +351,7 @@ MODULE_DEVICE_TABLE(of, rb91x_nand_match);
 
 static struct platform_driver rb91x_nand_driver = {
        .probe  = rb91x_nand_probe,
-       .remove_new     = rb91x_nand_remove,
+       .remove = rb91x_nand_remove,
        .driver = {
                .name   = "rb91x-nand",
                .of_match_table = rb91x_nand_match,
index 9ccba7472078a29028938ac7b5211fe5b23bc9f7..2af0508b8a268e717b4e5417435fba4afb1ab474 100644 (file)
@@ -237,8 +237,8 @@ static const struct of_device_id ag71xx_mdio_match[] = {
 };
 
 static struct platform_driver ag71xx_mdio_driver = {
-       .probe          = ag71xx_mdio_probe,
-       .remove_new     = ag71xx_mdio_remove,
+       .probe  = ag71xx_mdio_probe,
+       .remove = ag71xx_mdio_remove,
        .driver = {
                .name    = "ag71xx-legacy-mdio",
                .of_match_table = ag71xx_mdio_match,
index f2d1e3582879e09e58c067464c6eb9c9c5cfded7..9f0d61db1bd245b8b9417482a9dbf77b33cb5916 100644 (file)
@@ -1762,8 +1762,8 @@ static const struct of_device_id ag71xx_match[] = {
 };
 
 static struct platform_driver ag71xx_driver = {
-       .probe          = ag71xx_probe,
-       .remove_new     = ag71xx_remove,
+       .probe  = ag71xx_probe,
+       .remove = ag71xx_remove,
        .driver = {
                .name   = AG71XX_DRV_NAME,
                .of_match_table = ag71xx_match,
index 85105f591e4f5c4649b06be86fea0a31b0ea3422..fbab6b68b4dcc844acd0caa2296889aa8f932172 100644 (file)
@@ -1704,7 +1704,7 @@ static struct platform_driver bcm6348_emac_driver = {
                .of_match_table = bcm6348_emac_of_match,
        },
        .probe  = bcm6348_emac_probe,
-       .remove_new     = bcm6348_emac_remove,
+       .remove = bcm6348_emac_remove,
 };
 
 int bcm6348_iudma_drivers_register(struct platform_device *pdev)
index 97ca6a81d84da75aec8f1e01e98254e6b06e397d..8f5b702edf088bf6278fa481fbd2d0edb6a67b15 100644 (file)
@@ -1136,7 +1136,7 @@ static struct platform_driver bcm6368_enetsw_driver = {
                .of_match_table = bcm6368_enetsw_of_match,
        },
        .probe  = bcm6368_enetsw_probe,
-       .remove_new     = bcm6368_enetsw_remove,
+       .remove = bcm6368_enetsw_remove,
 };
 module_platform_driver(bcm6368_enetsw_driver);
 
index d917427419ad811ed84445720aaecfa533efa613..367dbbb970c388e1cf2b824185ad746833aaa38a 100644 (file)
@@ -1208,8 +1208,8 @@ static void adm6996_gpio_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver adm6996_gpio_driver = {
-       .probe = adm6996_gpio_probe,
-       .remove_new = adm6996_gpio_remove,
+       .probe  = adm6996_gpio_probe,
+       .remove = adm6996_gpio_remove,
        .driver = {
                .name = "adm6996_gpio",
        },
index 62dfe1c24282ff6aae11386274bbbcd0e6c49f7c..574e7b0e148b9637c18d0727e9861186967341e9 100644 (file)
@@ -226,8 +226,8 @@ static void b53_mmap_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver b53_mmap_driver = {
-       .probe = b53_mmap_probe,
-       .remove_new = b53_mmap_remove,
+       .probe  = b53_mmap_probe,
+       .remove = b53_mmap_remove,
        .driver = {
                .name = "b53-switch",
        },
index f8cb99383ff16e381b464288638fffa306270aa8..5597be9f4a36a9ef8824554d1f6618b83c8e311b 100644 (file)
@@ -363,8 +363,8 @@ static void b53_srab_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver b53_srab_driver = {
-       .probe = b53_srab_probe,
-       .remove_new = b53_srab_remove,
+       .probe  = b53_srab_probe,
+       .remove = b53_srab_remove,
        .driver = {
                .name = "b53-srab-switch",
        },
index 0f4bbb1f680ac4f8a231ffc5a5c8b31433f0760e..3d4daeca3e1f61e02fb8421e308fef05a641ee5f 100644 (file)
@@ -1498,7 +1498,7 @@ static struct platform_driver rtl8366rb_driver = {
                .of_match_table = rtl8366rb_match,
        },
        .probe          = rtl8366rb_probe,
-       .remove_new             = rtl8366rb_remove,
+       .remove         = rtl8366rb_remove,
 };
 
 static int __init rtl8366rb_module_init(void)
index 0b37a4e73c519fbb80f0514007c15b1bd89564a2..ef0b59995814b4772c74a75383e4266ff72bce92 100644 (file)
@@ -1274,8 +1274,8 @@ static struct platform_driver rtl8366s_driver = {
                .name           = RTL8366S_DRIVER_NAME,
                .of_match_table = rtl8366s_match,
        },
-       .probe          = rtl8366s_probe,
-       .remove_new     = rtl8366s_remove,
+       .probe  = rtl8366s_probe,
+       .remove = rtl8366s_remove,
 };
 
 static int __init rtl8366s_module_init(void)
index 2c11190c0114ad5ace16e9fd7222029c011db1c8..a16057e26cf92614bb8851a1d15bd4445d3335f3 100644 (file)
@@ -1811,9 +1811,9 @@ static struct platform_driver rtl8367_driver = {
                .name           = RTL8367_DRIVER_NAME,
                .of_match_table = rtl8367_match,
        },
-       .probe          = rtl8367_probe,
-       .remove_new     = rtl8367_remove,
-       .shutdown       = rtl8367_shutdown,
+       .probe    = rtl8367_probe,
+       .remove   = rtl8367_remove,
+       .shutdown = rtl8367_shutdown,
 };
 
 static int __init rtl8367_module_init(void)
index ae309367dcdbdf125fd896dbe95d2a6cb8de5dee..d3dc6af39a2ac6837d856b041bb703d1eb5712bb 100644 (file)
@@ -1609,9 +1609,9 @@ static struct platform_driver rtl8367b_driver = {
                .name           = RTL8367B_DRIVER_NAME,
                .of_match_table = rtl8367b_match,
        },
-       .probe          = rtl8367b_probe,
-       .remove_new     = rtl8367b_remove,
-       .shutdown       = rtl8367b_shutdown,
+       .probe    = rtl8367b_probe,
+       .remove   = rtl8367b_remove,
+       .shutdown = rtl8367b_shutdown,
 };
 
 module_platform_driver(rtl8367b_driver);
index 537e226a19369c5be9231200ec7585d66beea302..b623d30e72db6229382cc72353abec0a6c22eac9 100644 (file)
@@ -281,8 +281,8 @@ static void rtk_gsw_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver gsw_driver = {
-       .probe = rtk_gsw_probe,
-       .remove_new = rtk_gsw_remove,
+       .probe  = rtk_gsw_probe,
+       .remove = rtk_gsw_remove,
        .driver = {
                .name = "rtk-gsw",
                .of_match_table = rtk_gsw_match,
index b99b4a920f3fdff9b013ae5de7023b34003f3462..013fa88a0e63aaa8c5a719e2f025cb4b5c4db364 100644 (file)
@@ -744,8 +744,8 @@ static void mtk_hsdma_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver mtk_hsdma_driver = {
-       .probe = mtk_hsdma_probe,
-       .remove_new = mtk_hsdma_remove,
+       .probe  = mtk_hsdma_probe,
+       .remove = mtk_hsdma_remove,
        .driver = {
                .name = KBUILD_MODNAME,
                .of_match_table = mtk_hsdma_of_match,
index 41220d83dd30ca9a74564ae8ce03a86ba21b3f28..b6458967a198930292e2f0d1c89ee5efb4cd5fb7 100644 (file)
@@ -900,8 +900,8 @@ static void gdma_dma_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver gdma_dma_driver = {
-       .probe = gdma_dma_probe,
-       .remove_new = gdma_dma_remove,
+       .probe  = gdma_dma_probe,
+       .remove = gdma_dma_remove,
        .driver = {
                .name = "gdma-rt2880",
                .of_match_table = gdma_of_match_table,
index 5a52dd6310489f6dbe318dd77574c7f9e2aaa018..bf39349afabf915f4f32ef9bc814a986f2163ec8 100644 (file)
@@ -2410,7 +2410,7 @@ MODULE_DEVICE_TABLE(of, mt7620_sdhci_match);
 
 static struct platform_driver mt_msdc_driver = {
        .probe   = msdc_drv_probe,
-       .remove_new  = msdc_drv_remove,
+       .remove  = msdc_drv_remove,
 #ifdef CONFIG_PM
        .suspend = msdc_drv_suspend,
        .resume  = msdc_drv_resume,
index bd071c9ec3278756d7fd5cd724862ee85de7d899..7828d383abd5018fcc603bdf9df36aefb10fae58 100644 (file)
@@ -1330,8 +1330,8 @@ static const struct of_device_id mt7621_nfc_id_table[] = {
 MODULE_DEVICE_TABLE(of, match);
 
 static struct platform_driver mt7621_nfc_driver = {
-       .probe = mt7621_nfc_probe,
-       .remove_new = mt7621_nfc_remove,
+       .probe  = mt7621_nfc_probe,
+       .remove = mt7621_nfc_remove,
        .driver = {
                .name = MT7621_NFC_NAME,
                .of_match_table = mt7621_nfc_id_table,