Move back to .remove from .remove_new as kernel 6.12 unified the usage
of .remove and .remove_new (and .remove_new is expected to be dropped in
later version)
Signed-off-by: Zhu Yujie <libriunc@gmail.com>
[ improve commit description ]
Link: https://github.com/openwrt/openwrt/pull/20555
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
static struct platform_driver dpns_driver = {
.probe = dpns_probe,
- .remove_new = dpns_remove,
+ .remove = dpns_remove,
.driver = {
.name = "sfdpns",
.of_match_table = dpns_match,
static struct platform_driver xgmac_dma_driver = {
.probe = xgmac_dma_probe,
- .remove_new = xgmac_dma_remove,
+ .remove = xgmac_dma_remove,
.driver = {
.name = "sfxgmac_dma",
.of_match_table = xgmac_dma_match,
static struct platform_driver xgmac_driver = {
.probe = xgmac_probe,
- .remove_new = xgmac_remove,
+ .remove = xgmac_remove,
.driver = {
.name = "sfxgmac",
.of_match_table = xgmac_match,
static struct platform_driver sf19a2890_gmac_driver = {
.probe = sf19a2890_gmac_probe,
- .remove_new = stmmac_pltfr_remove,
+ .remove = stmmac_pltfr_remove,
.driver = {
.name = "sf19a2890-gmac",
.pm = &stmmac_pltfr_pm_ops,