From: Jonas Jelonek Date: Tue, 6 Jan 2026 20:58:11 +0000 (+0000) Subject: realtek: replace remove_new with remove X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2e49c4d72ef017c4be10769861328d26a3f9d6b;p=thirdparty%2Fopenwrt.git realtek: replace remove_new with remove 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 Link: https://github.com/openwrt/openwrt/pull/21430 Signed-off-by: Stijn Tintel --- diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c index 787ceda834d..09bafc8f26c 100644 --- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c +++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c @@ -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, diff --git a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c index 90c98f83b06..ec3df030b94 100644 --- a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c +++ b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c @@ -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,