]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: replace remove_new with remove 21430/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 6 Jan 2026 20:58:11 +0000 (20:58 +0000)
committerStijn Tintel <stijn@linux-ipv6.be>
Fri, 9 Jan 2026 18:37:15 +0000 (20:37 +0200)
Replace remove_new callback in struct platform_driver with remove. This
was just meant for a transition period. remove_new is dropped with 6.13.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21430
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

index 787ceda834d1dffd563c1bc0337f79c171a6b4df..09bafc8f26c59fc63809e0ea97fc0c130152be1b 100644 (file)
@@ -1683,8 +1683,8 @@ static const struct of_device_id rtl83xx_switch_of_ids[] = {
 MODULE_DEVICE_TABLE(of, rtl83xx_switch_of_ids);
 
 static struct platform_driver rtl83xx_switch_driver = {
-       .probe = rtl83xx_sw_probe,
-       .remove_new = rtl83xx_sw_remove,
+       .probe  = rtl83xx_sw_probe,
+       .remove = rtl83xx_sw_remove,
        .driver = {
                .name = "rtl83xx-switch",
                .pm = NULL,
index 90c98f83b0645e9ca5be2819e45c7dbec852e9ad..ec3df030b9414a33b30c2dc7d8a5d1427dda77dd 100644 (file)
@@ -1836,8 +1836,8 @@ static const struct of_device_id rtl838x_eth_of_ids[] = {
 MODULE_DEVICE_TABLE(of, rtl838x_eth_of_ids);
 
 static struct platform_driver rtl838x_eth_driver = {
-       .probe = rtl838x_eth_probe,
-       .remove_new = rtl838x_eth_remove,
+       .probe  = rtl838x_eth_probe,
+       .remove = rtl838x_eth_remove,
        .driver = {
                .name = "rtl838x-eth",
                .pm = NULL,