ramips: update drivers to be compatible with kernel 6.12 and above

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>
This commit is contained in:
Mieczyslaw Nalewaj 2025-07-06 14:50:59 +02:00 committed by Nick Hainke
parent ce97258300
commit 6f09f8ca31
3 changed files with 3 additions and 3 deletions

View 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,

View 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,

View 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,