netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void
@ 2023-09-18 19:50 Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 01/19] net: mdio: aspeed: " Uwe Kleine-König
                   ` (19 more replies)
  0 siblings, 20 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Joel Stanley, Andrew Jeffery, netdev,
	linux-arm-kernel, linux-aspeed, linux-kernel, Ray Jui,
	Scott Branden, Broadcom internal kernel review list, Doug Berger,
	Florian Fainelli, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, linux-amlogic, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, linux-sunxi, Iyappan Subramanian, Keyur Chudgar,
	Quan Nguyen

Hello,

this series convert all platform drivers below drivers/net/mdio to
use remove_new. The motivation is to get rid of an integer return code
that is (mostly) ignored by the platform driver core and error prone on
the driver side.

See commit 5c5a7680e67b ("platform: Provide a remove callback that
returns no value") for an extended explanation and the eventual goal.

There are no interdependencies between the patches. As there are still
quite a few drivers to convert, I'm happy about every patch that makes
it in. So even if there is a merge conflict with one patch until you
apply, please apply the remainder of this series anyhow.

Best regards
Uwe

Uwe Kleine-König (19):
  net: mdio: aspeed: Convert to platform remove callback returning void
  net: mdio: bcm-iproc: Convert to platform remove callback returning
    void
  net: mdio: bcm-unimac: Convert to platform remove callback returning
    void
  net: mdio: gpio: Convert to platform remove callback returning void
  net: mdio: hisi-femac: Convert to platform remove callback returning
    void
  net: mdio: ipq4019: Convert to platform remove callback returning void
  net: mdio: ipq8064: Convert to platform remove callback returning void
  net: mdio: moxart: Convert to platform remove callback returning void
  net: mdio: mscc-miim: Convert to platform remove callback returning
    void
  net: mdio: mux-bcm-iproc: Convert to platform remove callback
    returning void
  net: mdio: mux-bcm6368: Convert to platform remove callback returning
    void
  net: mdio: mux-gpio: Convert to platform remove callback returning
    void
  net: mdio: mux-meson-g12a: Convert to platform remove callback
    returning void
  net: mdio: mux-meson-gxl: Convert to platform remove callback
    returning void
  net: mdio: mux-mmioreg: Convert to platform remove callback returning
    void
  net: mdio: mux-multiplexer: Convert to platform remove callback
    returning void
  net: mdio: octeon: Convert to platform remove callback returning void
  net: mdio: sun4i: Convert to platform remove callback returning void
  net: mdio: xgene: Convert to platform remove callback returning void

 drivers/net/mdio/mdio-aspeed.c          | 6 ++----
 drivers/net/mdio/mdio-bcm-iproc.c       | 6 ++----
 drivers/net/mdio/mdio-bcm-unimac.c      | 6 ++----
 drivers/net/mdio/mdio-gpio.c            | 6 ++----
 drivers/net/mdio/mdio-hisi-femac.c      | 6 ++----
 drivers/net/mdio/mdio-ipq4019.c         | 6 ++----
 drivers/net/mdio/mdio-ipq8064.c         | 7 ++-----
 drivers/net/mdio/mdio-moxart.c          | 6 ++----
 drivers/net/mdio/mdio-mscc-miim.c       | 6 ++----
 drivers/net/mdio/mdio-mux-bcm-iproc.c   | 6 ++----
 drivers/net/mdio/mdio-mux-bcm6368.c     | 6 ++----
 drivers/net/mdio/mdio-mux-gpio.c        | 5 ++---
 drivers/net/mdio/mdio-mux-meson-g12a.c  | 6 ++----
 drivers/net/mdio/mdio-mux-meson-gxl.c   | 6 ++----
 drivers/net/mdio/mdio-mux-mmioreg.c     | 6 ++----
 drivers/net/mdio/mdio-mux-multiplexer.c | 6 ++----
 drivers/net/mdio/mdio-octeon.c          | 5 ++---
 drivers/net/mdio/mdio-sun4i.c           | 6 ++----
 drivers/net/mdio/mdio-xgene.c           | 6 ++----
 19 files changed, 38 insertions(+), 75 deletions(-)

base-commit: 7fc7222d9680366edeecc219c21ca96310bdbc10
-- 
2.40.1


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [PATCH net-next 01/19] net: mdio: aspeed: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 02/19] net: mdio: bcm-iproc: " Uwe Kleine-König
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Joel Stanley, Andrew Jeffery, netdev,
	linux-arm-kernel, linux-aspeed, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-aspeed.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c
index c727103c8b05..70edeeb7771e 100644
--- a/drivers/net/mdio/mdio-aspeed.c
+++ b/drivers/net/mdio/mdio-aspeed.c
@@ -177,15 +177,13 @@ static int aspeed_mdio_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int aspeed_mdio_remove(struct platform_device *pdev)
+static void aspeed_mdio_remove(struct platform_device *pdev)
 {
 	struct mii_bus *bus = (struct mii_bus *)platform_get_drvdata(pdev);
 	struct aspeed_mdio *ctx = bus->priv;
 
 	reset_control_assert(ctx->reset);
 	mdiobus_unregister(bus);
-
-	return 0;
 }
 
 static const struct of_device_id aspeed_mdio_of_match[] = {
@@ -200,7 +198,7 @@ static struct platform_driver aspeed_mdio_driver = {
 		.of_match_table = aspeed_mdio_of_match,
 	},
 	.probe = aspeed_mdio_probe,
-	.remove = aspeed_mdio_remove,
+	.remove_new = aspeed_mdio_remove,
 };
 
 module_platform_driver(aspeed_mdio_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 02/19] net: mdio: bcm-iproc: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 01/19] net: mdio: aspeed: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 20:09   ` Florian Fainelli
  2023-09-18 19:50 ` [PATCH net-next 03/19] net: mdio: bcm-unimac: " Uwe Kleine-König
                   ` (17 subsequent siblings)
  19 siblings, 1 reply; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Ray Jui, Scott Branden,
	Broadcom internal kernel review list, netdev, linux-arm-kernel,
	linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-bcm-iproc.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-bcm-iproc.c b/drivers/net/mdio/mdio-bcm-iproc.c
index 77fc970cdfde..5a2d26c6afdc 100644
--- a/drivers/net/mdio/mdio-bcm-iproc.c
+++ b/drivers/net/mdio/mdio-bcm-iproc.c
@@ -168,14 +168,12 @@ static int iproc_mdio_probe(struct platform_device *pdev)
 	return rc;
 }
 
-static int iproc_mdio_remove(struct platform_device *pdev)
+static void iproc_mdio_remove(struct platform_device *pdev)
 {
 	struct iproc_mdio_priv *priv = platform_get_drvdata(pdev);
 
 	mdiobus_unregister(priv->mii_bus);
 	mdiobus_free(priv->mii_bus);
-
-	return 0;
 }
 
 #ifdef CONFIG_PM_SLEEP
@@ -210,7 +208,7 @@ static struct platform_driver iproc_mdio_driver = {
 #endif
 	},
 	.probe = iproc_mdio_probe,
-	.remove = iproc_mdio_remove,
+	.remove_new = iproc_mdio_remove,
 };
 
 module_platform_driver(iproc_mdio_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 03/19] net: mdio: bcm-unimac: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 01/19] net: mdio: aspeed: " Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 02/19] net: mdio: bcm-iproc: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 20:09   ` Florian Fainelli
  2023-09-18 19:50 ` [PATCH net-next 04/19] net: mdio: gpio: " Uwe Kleine-König
                   ` (16 subsequent siblings)
  19 siblings, 1 reply; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Doug Berger, Florian Fainelli,
	Broadcom internal kernel review list, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-bcm-unimac.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b/drivers/net/mdio/mdio-bcm-unimac.c
index 6b26a0803696..e8cd8eef319b 100644
--- a/drivers/net/mdio/mdio-bcm-unimac.c
+++ b/drivers/net/mdio/mdio-bcm-unimac.c
@@ -296,15 +296,13 @@ static int unimac_mdio_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int unimac_mdio_remove(struct platform_device *pdev)
+static void unimac_mdio_remove(struct platform_device *pdev)
 {
 	struct unimac_mdio_priv *priv = platform_get_drvdata(pdev);
 
 	mdiobus_unregister(priv->mii_bus);
 	mdiobus_free(priv->mii_bus);
 	clk_disable_unprepare(priv->clk);
-
-	return 0;
 }
 
 static int __maybe_unused unimac_mdio_suspend(struct device *d)
@@ -353,7 +351,7 @@ static struct platform_driver unimac_mdio_driver = {
 		.pm = &unimac_mdio_pm_ops,
 	},
 	.probe	= unimac_mdio_probe,
-	.remove	= unimac_mdio_remove,
+	.remove_new = unimac_mdio_remove,
 };
 module_platform_driver(unimac_mdio_driver);
 
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 04/19] net: mdio: gpio: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (2 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 03/19] net: mdio: bcm-unimac: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 05/19] net: mdio: hisi-femac: " Uwe Kleine-König
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-gpio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-gpio.c b/drivers/net/mdio/mdio-gpio.c
index 0fb3c2de0845..897b88c50bbb 100644
--- a/drivers/net/mdio/mdio-gpio.c
+++ b/drivers/net/mdio/mdio-gpio.c
@@ -194,11 +194,9 @@ static int mdio_gpio_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int mdio_gpio_remove(struct platform_device *pdev)
+static void mdio_gpio_remove(struct platform_device *pdev)
 {
 	mdio_gpio_bus_destroy(&pdev->dev);
-
-	return 0;
 }
 
 static const struct of_device_id mdio_gpio_of_match[] = {
@@ -210,7 +208,7 @@ MODULE_DEVICE_TABLE(of, mdio_gpio_of_match);
 
 static struct platform_driver mdio_gpio_driver = {
 	.probe = mdio_gpio_probe,
-	.remove = mdio_gpio_remove,
+	.remove_new = mdio_gpio_remove,
 	.driver		= {
 		.name	= "mdio-gpio",
 		.of_match_table = mdio_gpio_of_match,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 05/19] net: mdio: hisi-femac: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (3 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 04/19] net: mdio: gpio: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 06/19] net: mdio: ipq4019: " Uwe Kleine-König
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-hisi-femac.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-hisi-femac.c b/drivers/net/mdio/mdio-hisi-femac.c
index f231c2fbb1de..6703f626ee83 100644
--- a/drivers/net/mdio/mdio-hisi-femac.c
+++ b/drivers/net/mdio/mdio-hisi-femac.c
@@ -118,7 +118,7 @@ static int hisi_femac_mdio_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int hisi_femac_mdio_remove(struct platform_device *pdev)
+static void hisi_femac_mdio_remove(struct platform_device *pdev)
 {
 	struct mii_bus *bus = platform_get_drvdata(pdev);
 	struct hisi_femac_mdio_data *data = bus->priv;
@@ -126,8 +126,6 @@ static int hisi_femac_mdio_remove(struct platform_device *pdev)
 	mdiobus_unregister(bus);
 	clk_disable_unprepare(data->clk);
 	mdiobus_free(bus);
-
-	return 0;
 }
 
 static const struct of_device_id hisi_femac_mdio_dt_ids[] = {
@@ -138,7 +136,7 @@ MODULE_DEVICE_TABLE(of, hisi_femac_mdio_dt_ids);
 
 static struct platform_driver hisi_femac_mdio_driver = {
 	.probe = hisi_femac_mdio_probe,
-	.remove = hisi_femac_mdio_remove,
+	.remove_new = hisi_femac_mdio_remove,
 	.driver = {
 		.name = "hisi-femac-mdio",
 		.of_match_table = hisi_femac_mdio_dt_ids,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 06/19] net: mdio: ipq4019: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (4 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 05/19] net: mdio: hisi-femac: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 07/19] net: mdio: ipq8064: " Uwe Kleine-König
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-ipq4019.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-ipq4019.c b/drivers/net/mdio/mdio-ipq4019.c
index 78b93de636f5..abd8b508ec16 100644
--- a/drivers/net/mdio/mdio-ipq4019.c
+++ b/drivers/net/mdio/mdio-ipq4019.c
@@ -278,13 +278,11 @@ static int ipq4019_mdio_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int ipq4019_mdio_remove(struct platform_device *pdev)
+static void ipq4019_mdio_remove(struct platform_device *pdev)
 {
 	struct mii_bus *bus = platform_get_drvdata(pdev);
 
 	mdiobus_unregister(bus);
-
-	return 0;
 }
 
 static const struct of_device_id ipq4019_mdio_dt_ids[] = {
@@ -296,7 +294,7 @@ MODULE_DEVICE_TABLE(of, ipq4019_mdio_dt_ids);
 
 static struct platform_driver ipq4019_mdio_driver = {
 	.probe = ipq4019_mdio_probe,
-	.remove = ipq4019_mdio_remove,
+	.remove_new = ipq4019_mdio_remove,
 	.driver = {
 		.name = "ipq4019-mdio",
 		.of_match_table = ipq4019_mdio_dt_ids,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 07/19] net: mdio: ipq8064: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (5 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 06/19] net: mdio: ipq4019: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 08/19] net: mdio: moxart: " Uwe Kleine-König
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-ipq8064.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/net/mdio/mdio-ipq8064.c b/drivers/net/mdio/mdio-ipq8064.c
index fd9716960106..f71b6e1c66e4 100644
--- a/drivers/net/mdio/mdio-ipq8064.c
+++ b/drivers/net/mdio/mdio-ipq8064.c
@@ -147,14 +147,11 @@ ipq8064_mdio_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int
-ipq8064_mdio_remove(struct platform_device *pdev)
+static void ipq8064_mdio_remove(struct platform_device *pdev)
 {
 	struct mii_bus *bus = platform_get_drvdata(pdev);
 
 	mdiobus_unregister(bus);
-
-	return 0;
 }
 
 static const struct of_device_id ipq8064_mdio_dt_ids[] = {
@@ -165,7 +162,7 @@ MODULE_DEVICE_TABLE(of, ipq8064_mdio_dt_ids);
 
 static struct platform_driver ipq8064_mdio_driver = {
 	.probe = ipq8064_mdio_probe,
-	.remove = ipq8064_mdio_remove,
+	.remove_new = ipq8064_mdio_remove,
 	.driver = {
 		.name = "ipq8064-mdio",
 		.of_match_table = ipq8064_mdio_dt_ids,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 08/19] net: mdio: moxart: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (6 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 07/19] net: mdio: ipq8064: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 09/19] net: mdio: mscc-miim: " Uwe Kleine-König
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-moxart.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-moxart.c b/drivers/net/mdio/mdio-moxart.c
index f0cff584e176..d35af8cd7c4d 100644
--- a/drivers/net/mdio/mdio-moxart.c
+++ b/drivers/net/mdio/mdio-moxart.c
@@ -155,14 +155,12 @@ static int moxart_mdio_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int moxart_mdio_remove(struct platform_device *pdev)
+static void moxart_mdio_remove(struct platform_device *pdev)
 {
 	struct mii_bus *bus = platform_get_drvdata(pdev);
 
 	mdiobus_unregister(bus);
 	mdiobus_free(bus);
-
-	return 0;
 }
 
 static const struct of_device_id moxart_mdio_dt_ids[] = {
@@ -173,7 +171,7 @@ MODULE_DEVICE_TABLE(of, moxart_mdio_dt_ids);
 
 static struct platform_driver moxart_mdio_driver = {
 	.probe = moxart_mdio_probe,
-	.remove = moxart_mdio_remove,
+	.remove_new = moxart_mdio_remove,
 	.driver = {
 		.name = "moxart-mdio",
 		.of_match_table = moxart_mdio_dt_ids,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 09/19] net: mdio: mscc-miim: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (7 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 08/19] net: mdio: moxart: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 10/19] net: mdio: mux-bcm-iproc: " Uwe Kleine-König
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mscc-miim.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-mscc-miim.c b/drivers/net/mdio/mdio-mscc-miim.c
index 1a1b95ae95fa..c29377c85307 100644
--- a/drivers/net/mdio/mdio-mscc-miim.c
+++ b/drivers/net/mdio/mdio-mscc-miim.c
@@ -335,15 +335,13 @@ static int mscc_miim_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int mscc_miim_remove(struct platform_device *pdev)
+static void mscc_miim_remove(struct platform_device *pdev)
 {
 	struct mii_bus *bus = platform_get_drvdata(pdev);
 	struct mscc_miim_dev *miim = bus->priv;
 
 	clk_disable_unprepare(miim->clk);
 	mdiobus_unregister(bus);
-
-	return 0;
 }
 
 static const struct mscc_miim_info mscc_ocelot_miim_info = {
@@ -371,7 +369,7 @@ MODULE_DEVICE_TABLE(of, mscc_miim_match);
 
 static struct platform_driver mscc_miim_driver = {
 	.probe = mscc_miim_probe,
-	.remove = mscc_miim_remove,
+	.remove_new = mscc_miim_remove,
 	.driver = {
 		.name = "mscc-miim",
 		.of_match_table = mscc_miim_match,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 10/19] net: mdio: mux-bcm-iproc: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (8 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 09/19] net: mdio: mscc-miim: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 20:09   ` Florian Fainelli
  2023-09-18 19:50 ` [PATCH net-next 11/19] net: mdio: mux-bcm6368: " Uwe Kleine-König
                   ` (9 subsequent siblings)
  19 siblings, 1 reply; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Ray Jui, Scott Branden,
	Broadcom internal kernel review list, netdev, linux-arm-kernel,
	linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mux-bcm-iproc.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-mux-bcm-iproc.c b/drivers/net/mdio/mdio-mux-bcm-iproc.c
index 956d54846b62..a750bd4c77a0 100644
--- a/drivers/net/mdio/mdio-mux-bcm-iproc.c
+++ b/drivers/net/mdio/mdio-mux-bcm-iproc.c
@@ -287,15 +287,13 @@ static int mdio_mux_iproc_probe(struct platform_device *pdev)
 	return rc;
 }
 
-static int mdio_mux_iproc_remove(struct platform_device *pdev)
+static void mdio_mux_iproc_remove(struct platform_device *pdev)
 {
 	struct iproc_mdiomux_desc *md = platform_get_drvdata(pdev);
 
 	mdio_mux_uninit(md->mux_handle);
 	mdiobus_unregister(md->mii_bus);
 	clk_disable_unprepare(md->core_clk);
-
-	return 0;
 }
 
 #ifdef CONFIG_PM_SLEEP
@@ -342,7 +340,7 @@ static struct platform_driver mdiomux_iproc_driver = {
 		.pm		= &mdio_mux_iproc_pm_ops,
 	},
 	.probe		= mdio_mux_iproc_probe,
-	.remove		= mdio_mux_iproc_remove,
+	.remove_new	= mdio_mux_iproc_remove,
 };
 
 module_platform_driver(mdiomux_iproc_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 11/19] net: mdio: mux-bcm6368: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (9 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 10/19] net: mdio: mux-bcm-iproc: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 12/19] net: mdio: mux-gpio: " Uwe Kleine-König
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mux-bcm6368.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-mux-bcm6368.c b/drivers/net/mdio/mdio-mux-bcm6368.c
index 8b444a8eb6b5..1b77e0e3e6e1 100644
--- a/drivers/net/mdio/mdio-mux-bcm6368.c
+++ b/drivers/net/mdio/mdio-mux-bcm6368.c
@@ -153,14 +153,12 @@ static int bcm6368_mdiomux_probe(struct platform_device *pdev)
 	return rc;
 }
 
-static int bcm6368_mdiomux_remove(struct platform_device *pdev)
+static void bcm6368_mdiomux_remove(struct platform_device *pdev)
 {
 	struct bcm6368_mdiomux_desc *md = platform_get_drvdata(pdev);
 
 	mdio_mux_uninit(md->mux_handle);
 	mdiobus_unregister(md->mii_bus);
-
-	return 0;
 }
 
 static const struct of_device_id bcm6368_mdiomux_ids[] = {
@@ -175,7 +173,7 @@ static struct platform_driver bcm6368_mdiomux_driver = {
 		.of_match_table = bcm6368_mdiomux_ids,
 	},
 	.probe	= bcm6368_mdiomux_probe,
-	.remove	= bcm6368_mdiomux_remove,
+	.remove_new = bcm6368_mdiomux_remove,
 };
 module_platform_driver(bcm6368_mdiomux_driver);
 
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 12/19] net: mdio: mux-gpio: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (10 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 11/19] net: mdio: mux-bcm6368: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 13/19] net: mdio: mux-meson-g12a: " Uwe Kleine-König
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mux-gpio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/mdio/mdio-mux-gpio.c b/drivers/net/mdio/mdio-mux-gpio.c
index 3c7f16f06b45..38fb031f8979 100644
--- a/drivers/net/mdio/mdio-mux-gpio.c
+++ b/drivers/net/mdio/mdio-mux-gpio.c
@@ -62,11 +62,10 @@ static int mdio_mux_gpio_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int mdio_mux_gpio_remove(struct platform_device *pdev)
+static void mdio_mux_gpio_remove(struct platform_device *pdev)
 {
 	struct mdio_mux_gpio_state *s = dev_get_platdata(&pdev->dev);
 	mdio_mux_uninit(s->mux_handle);
-	return 0;
 }
 
 static const struct of_device_id mdio_mux_gpio_match[] = {
@@ -87,7 +86,7 @@ static struct platform_driver mdio_mux_gpio_driver = {
 		.of_match_table = mdio_mux_gpio_match,
 	},
 	.probe		= mdio_mux_gpio_probe,
-	.remove		= mdio_mux_gpio_remove,
+	.remove_new	= mdio_mux_gpio_remove,
 };
 
 module_platform_driver(mdio_mux_gpio_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 13/19] net: mdio: mux-meson-g12a: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (11 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 12/19] net: mdio: mux-gpio: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 14/19] net: mdio: mux-meson-gxl: " Uwe Kleine-König
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, netdev, linux-arm-kernel, linux-amlogic,
	linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mux-meson-g12a.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-mux-meson-g12a.c b/drivers/net/mdio/mdio-mux-meson-g12a.c
index 910e5cf74e89..754b0f2cf15b 100644
--- a/drivers/net/mdio/mdio-mux-meson-g12a.c
+++ b/drivers/net/mdio/mdio-mux-meson-g12a.c
@@ -336,7 +336,7 @@ static int g12a_mdio_mux_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int g12a_mdio_mux_remove(struct platform_device *pdev)
+static void g12a_mdio_mux_remove(struct platform_device *pdev)
 {
 	struct g12a_mdio_mux *priv = platform_get_drvdata(pdev);
 
@@ -344,13 +344,11 @@ static int g12a_mdio_mux_remove(struct platform_device *pdev)
 
 	if (__clk_is_enabled(priv->pll))
 		clk_disable_unprepare(priv->pll);
-
-	return 0;
 }
 
 static struct platform_driver g12a_mdio_mux_driver = {
 	.probe		= g12a_mdio_mux_probe,
-	.remove		= g12a_mdio_mux_remove,
+	.remove_new	= g12a_mdio_mux_remove,
 	.driver		= {
 		.name	= "g12a-mdio_mux",
 		.of_match_table = g12a_mdio_mux_match,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 14/19] net: mdio: mux-meson-gxl: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (12 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 13/19] net: mdio: mux-meson-g12a: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 15/19] net: mdio: mux-mmioreg: " Uwe Kleine-König
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, netdev, linux-arm-kernel, linux-amlogic,
	linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mux-meson-gxl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-mux-meson-gxl.c b/drivers/net/mdio/mdio-mux-meson-gxl.c
index 76188575ca1f..89554021b5cc 100644
--- a/drivers/net/mdio/mdio-mux-meson-gxl.c
+++ b/drivers/net/mdio/mdio-mux-meson-gxl.c
@@ -140,18 +140,16 @@ static int gxl_mdio_mux_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int gxl_mdio_mux_remove(struct platform_device *pdev)
+static void gxl_mdio_mux_remove(struct platform_device *pdev)
 {
 	struct gxl_mdio_mux *priv = platform_get_drvdata(pdev);
 
 	mdio_mux_uninit(priv->mux_handle);
-
-	return 0;
 }
 
 static struct platform_driver gxl_mdio_mux_driver = {
 	.probe		= gxl_mdio_mux_probe,
-	.remove		= gxl_mdio_mux_remove,
+	.remove_new	= gxl_mdio_mux_remove,
 	.driver		= {
 		.name	= "gxl-mdio-mux",
 		.of_match_table = gxl_mdio_mux_match,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 15/19] net: mdio: mux-mmioreg: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (13 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 14/19] net: mdio: mux-meson-gxl: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:50 ` [PATCH net-next 16/19] net: mdio: mux-multiplexer: " Uwe Kleine-König
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mux-mmioreg.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-mux-mmioreg.c b/drivers/net/mdio/mdio-mux-mmioreg.c
index 09af150ed774..de08419d0c98 100644
--- a/drivers/net/mdio/mdio-mux-mmioreg.c
+++ b/drivers/net/mdio/mdio-mux-mmioreg.c
@@ -169,13 +169,11 @@ static int mdio_mux_mmioreg_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int mdio_mux_mmioreg_remove(struct platform_device *pdev)
+static void mdio_mux_mmioreg_remove(struct platform_device *pdev)
 {
 	struct mdio_mux_mmioreg_state *s = dev_get_platdata(&pdev->dev);
 
 	mdio_mux_uninit(s->mux_handle);
-
-	return 0;
 }
 
 static const struct of_device_id mdio_mux_mmioreg_match[] = {
@@ -192,7 +190,7 @@ static struct platform_driver mdio_mux_mmioreg_driver = {
 		.of_match_table = mdio_mux_mmioreg_match,
 	},
 	.probe		= mdio_mux_mmioreg_probe,
-	.remove		= mdio_mux_mmioreg_remove,
+	.remove_new	= mdio_mux_mmioreg_remove,
 };
 
 module_platform_driver(mdio_mux_mmioreg_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 16/19] net: mdio: mux-multiplexer: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (14 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 15/19] net: mdio: mux-mmioreg: " Uwe Kleine-König
@ 2023-09-18 19:50 ` Uwe Kleine-König
  2023-09-18 19:51 ` [PATCH net-next 17/19] net: mdio: octeon: " Uwe Kleine-König
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:50 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-mux-multiplexer.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-mux-multiplexer.c b/drivers/net/mdio/mdio-mux-multiplexer.c
index bfa5af577b0a..569b13383191 100644
--- a/drivers/net/mdio/mdio-mux-multiplexer.c
+++ b/drivers/net/mdio/mdio-mux-multiplexer.c
@@ -85,7 +85,7 @@ static int mdio_mux_multiplexer_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int mdio_mux_multiplexer_remove(struct platform_device *pdev)
+static void mdio_mux_multiplexer_remove(struct platform_device *pdev)
 {
 	struct mdio_mux_multiplexer_state *s = platform_get_drvdata(pdev);
 
@@ -93,8 +93,6 @@ static int mdio_mux_multiplexer_remove(struct platform_device *pdev)
 
 	if (s->do_deselect)
 		mux_control_deselect(s->muxc);
-
-	return 0;
 }
 
 static const struct of_device_id mdio_mux_multiplexer_match[] = {
@@ -109,7 +107,7 @@ static struct platform_driver mdio_mux_multiplexer_driver = {
 		.of_match_table	= mdio_mux_multiplexer_match,
 	},
 	.probe		= mdio_mux_multiplexer_probe,
-	.remove		= mdio_mux_multiplexer_remove,
+	.remove_new	= mdio_mux_multiplexer_remove,
 };
 
 module_platform_driver(mdio_mux_multiplexer_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 17/19] net: mdio: octeon: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (15 preceding siblings ...)
  2023-09-18 19:50 ` [PATCH net-next 16/19] net: mdio: mux-multiplexer: " Uwe Kleine-König
@ 2023-09-18 19:51 ` Uwe Kleine-König
  2023-09-18 19:51 ` [PATCH net-next 18/19] net: mdio: sun4i: " Uwe Kleine-König
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:51 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-octeon.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/mdio/mdio-octeon.c b/drivers/net/mdio/mdio-octeon.c
index 7c65c547d377..037a38cfed56 100644
--- a/drivers/net/mdio/mdio-octeon.c
+++ b/drivers/net/mdio/mdio-octeon.c
@@ -78,7 +78,7 @@ static int octeon_mdiobus_probe(struct platform_device *pdev)
 	return err;
 }
 
-static int octeon_mdiobus_remove(struct platform_device *pdev)
+static void octeon_mdiobus_remove(struct platform_device *pdev)
 {
 	struct cavium_mdiobus *bus;
 	union cvmx_smix_en smi_en;
@@ -88,7 +88,6 @@ static int octeon_mdiobus_remove(struct platform_device *pdev)
 	mdiobus_unregister(bus->mii_bus);
 	smi_en.u64 = 0;
 	oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN);
-	return 0;
 }
 
 static const struct of_device_id octeon_mdiobus_match[] = {
@@ -105,7 +104,7 @@ static struct platform_driver octeon_mdiobus_driver = {
 		.of_match_table = octeon_mdiobus_match,
 	},
 	.probe		= octeon_mdiobus_probe,
-	.remove		= octeon_mdiobus_remove,
+	.remove_new	= octeon_mdiobus_remove,
 };
 
 module_platform_driver(octeon_mdiobus_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 18/19] net: mdio: sun4i: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (16 preceding siblings ...)
  2023-09-18 19:51 ` [PATCH net-next 17/19] net: mdio: octeon: " Uwe Kleine-König
@ 2023-09-18 19:51 ` Uwe Kleine-König
  2023-09-19 17:22   ` Jernej Škrabec
  2023-09-18 19:51 ` [PATCH net-next 19/19] net: mdio: xgene: " Uwe Kleine-König
  2023-09-21 15:04 ` [PATCH net-next 00/19] net: mdio: " Simon Horman
  19 siblings, 1 reply; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:51 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, netdev,
	linux-arm-kernel, linux-sunxi, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-sun4i.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-sun4i.c b/drivers/net/mdio/mdio-sun4i.c
index f798de3276dc..4511bcc73b36 100644
--- a/drivers/net/mdio/mdio-sun4i.c
+++ b/drivers/net/mdio/mdio-sun4i.c
@@ -142,7 +142,7 @@ static int sun4i_mdio_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int sun4i_mdio_remove(struct platform_device *pdev)
+static void sun4i_mdio_remove(struct platform_device *pdev)
 {
 	struct mii_bus *bus = platform_get_drvdata(pdev);
 	struct sun4i_mdio_data *data = bus->priv;
@@ -151,8 +151,6 @@ static int sun4i_mdio_remove(struct platform_device *pdev)
 	if (data->regulator)
 		regulator_disable(data->regulator);
 	mdiobus_free(bus);
-
-	return 0;
 }
 
 static const struct of_device_id sun4i_mdio_dt_ids[] = {
@@ -166,7 +164,7 @@ MODULE_DEVICE_TABLE(of, sun4i_mdio_dt_ids);
 
 static struct platform_driver sun4i_mdio_driver = {
 	.probe = sun4i_mdio_probe,
-	.remove = sun4i_mdio_remove,
+	.remove_new = sun4i_mdio_remove,
 	.driver = {
 		.name = "sun4i-mdio",
 		.of_match_table = sun4i_mdio_dt_ids,
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH net-next 19/19] net: mdio: xgene: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (17 preceding siblings ...)
  2023-09-18 19:51 ` [PATCH net-next 18/19] net: mdio: sun4i: " Uwe Kleine-König
@ 2023-09-18 19:51 ` Uwe Kleine-König
  2023-09-21 15:04 ` [PATCH net-next 00/19] net: mdio: " Simon Horman
  19 siblings, 0 replies; 25+ messages in thread
From: Uwe Kleine-König @ 2023-09-18 19:51 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Iyappan Subramanian, Keyur Chudgar, Quan Nguyen, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev, linux-kernel

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mdio/mdio-xgene.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mdio/mdio-xgene.c b/drivers/net/mdio/mdio-xgene.c
index 1190a793555a..7909d7caf45c 100644
--- a/drivers/net/mdio/mdio-xgene.c
+++ b/drivers/net/mdio/mdio-xgene.c
@@ -432,7 +432,7 @@ static int xgene_mdio_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int xgene_mdio_remove(struct platform_device *pdev)
+static void xgene_mdio_remove(struct platform_device *pdev)
 {
 	struct xgene_mdio_pdata *pdata = platform_get_drvdata(pdev);
 	struct mii_bus *mdio_bus = pdata->mdio_bus;
@@ -443,8 +443,6 @@ static int xgene_mdio_remove(struct platform_device *pdev)
 
 	if (dev->of_node)
 		clk_disable_unprepare(pdata->clk);
-
-	return 0;
 }
 
 static struct platform_driver xgene_mdio_driver = {
@@ -454,7 +452,7 @@ static struct platform_driver xgene_mdio_driver = {
 		.acpi_match_table = ACPI_PTR(xgene_mdio_acpi_match),
 	},
 	.probe = xgene_mdio_probe,
-	.remove = xgene_mdio_remove,
+	.remove_new = xgene_mdio_remove,
 };
 
 module_platform_driver(xgene_mdio_driver);
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* Re: [PATCH net-next 02/19] net: mdio: bcm-iproc: Convert to platform remove callback returning void
  2023-09-18 19:50 ` [PATCH net-next 02/19] net: mdio: bcm-iproc: " Uwe Kleine-König
@ 2023-09-18 20:09   ` Florian Fainelli
  0 siblings, 0 replies; 25+ messages in thread
From: Florian Fainelli @ 2023-09-18 20:09 UTC (permalink / raw)
  To: Uwe Kleine-König, Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Ray Jui, Scott Branden,
	Broadcom internal kernel review list, netdev, linux-arm-kernel,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

On 9/18/23 12:50, Uwe Kleine-König wrote:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is ignored (apart
> from emitting a warning) and this typically results in resource leaks.
> To improve here there is a quest to make the remove callback return
> void. In the first step of this quest all drivers are converted to
> .remove_new() which already returns void. Eventually after all drivers
> are converted, .remove_new() is renamed to .remove().
> 
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH net-next 03/19] net: mdio: bcm-unimac: Convert to platform remove callback returning void
  2023-09-18 19:50 ` [PATCH net-next 03/19] net: mdio: bcm-unimac: " Uwe Kleine-König
@ 2023-09-18 20:09   ` Florian Fainelli
  0 siblings, 0 replies; 25+ messages in thread
From: Florian Fainelli @ 2023-09-18 20:09 UTC (permalink / raw)
  To: Uwe Kleine-König, Andrew Lunn, Heiner Kallweit
  Cc: Doug Berger, Broadcom internal kernel review list, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

On 9/18/23 12:50, Uwe Kleine-König wrote:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is ignored (apart
> from emitting a warning) and this typically results in resource leaks.
> To improve here there is a quest to make the remove callback return
> void. In the first step of this quest all drivers are converted to
> .remove_new() which already returns void. Eventually after all drivers
> are converted, .remove_new() is renamed to .remove().
> 
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH net-next 10/19] net: mdio: mux-bcm-iproc: Convert to platform remove callback returning void
  2023-09-18 19:50 ` [PATCH net-next 10/19] net: mdio: mux-bcm-iproc: " Uwe Kleine-König
@ 2023-09-18 20:09   ` Florian Fainelli
  0 siblings, 0 replies; 25+ messages in thread
From: Florian Fainelli @ 2023-09-18 20:09 UTC (permalink / raw)
  To: Uwe Kleine-König, Andrew Lunn, Heiner Kallweit
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Ray Jui, Scott Branden,
	Broadcom internal kernel review list, netdev, linux-arm-kernel,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

On 9/18/23 12:50, Uwe Kleine-König wrote:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is ignored (apart
> from emitting a warning) and this typically results in resource leaks.
> To improve here there is a quest to make the remove callback return
> void. In the first step of this quest all drivers are converted to
> .remove_new() which already returns void. Eventually after all drivers
> are converted, .remove_new() is renamed to .remove().
> 
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH net-next 18/19] net: mdio: sun4i: Convert to platform remove callback returning void
  2023-09-18 19:51 ` [PATCH net-next 18/19] net: mdio: sun4i: " Uwe Kleine-König
@ 2023-09-19 17:22   ` Jernej Škrabec
  0 siblings, 0 replies; 25+ messages in thread
From: Jernej Škrabec @ 2023-09-19 17:22 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Uwe Kleine-König
  Cc: Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Chen-Yu Tsai, Samuel Holland, netdev,
	linux-arm-kernel, linux-sunxi, linux-kernel

Dne ponedeljek, 18. september 2023 ob 21:51:01 CEST je Uwe Kleine-König 
napisal(a):
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is ignored (apart
> from emitting a warning) and this typically results in resource leaks.
> To improve here there is a quest to make the remove callback return
> void. In the first step of this quest all drivers are converted to
> .remove_new() which already returns void. Eventually after all drivers
> are converted, .remove_new() is renamed to .remove().
> 
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> ---
>  drivers/net/mdio/mdio-sun4i.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/net/mdio/mdio-sun4i.c b/drivers/net/mdio/mdio-sun4i.c
> index f798de3276dc..4511bcc73b36 100644
> --- a/drivers/net/mdio/mdio-sun4i.c
> +++ b/drivers/net/mdio/mdio-sun4i.c
> @@ -142,7 +142,7 @@ static int sun4i_mdio_probe(struct platform_device
> *pdev) return ret;
>  }
> 
> -static int sun4i_mdio_remove(struct platform_device *pdev)
> +static void sun4i_mdio_remove(struct platform_device *pdev)
>  {
>  	struct mii_bus *bus = platform_get_drvdata(pdev);
>  	struct sun4i_mdio_data *data = bus->priv;
> @@ -151,8 +151,6 @@ static int sun4i_mdio_remove(struct platform_device
> *pdev) if (data->regulator)
>  		regulator_disable(data->regulator);
>  	mdiobus_free(bus);
> -
> -	return 0;
>  }
> 
>  static const struct of_device_id sun4i_mdio_dt_ids[] = {
> @@ -166,7 +164,7 @@ MODULE_DEVICE_TABLE(of, sun4i_mdio_dt_ids);
> 
>  static struct platform_driver sun4i_mdio_driver = {
>  	.probe = sun4i_mdio_probe,
> -	.remove = sun4i_mdio_remove,
> +	.remove_new = sun4i_mdio_remove,
>  	.driver = {
>  		.name = "sun4i-mdio",
>  		.of_match_table = sun4i_mdio_dt_ids,





^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void
  2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (18 preceding siblings ...)
  2023-09-18 19:51 ` [PATCH net-next 19/19] net: mdio: xgene: " Uwe Kleine-König
@ 2023-09-21 15:04 ` Simon Horman
  19 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2023-09-21 15:04 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Joel Stanley,
	Andrew Jeffery, netdev, linux-arm-kernel, linux-aspeed,
	linux-kernel, Ray Jui, Scott Branden,
	Broadcom internal kernel review list, Doug Berger,
	Florian Fainelli, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, linux-amlogic, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, linux-sunxi, Iyappan Subramanian, Keyur Chudgar,
	Quan Nguyen

On Mon, Sep 18, 2023 at 09:50:43PM +0200, Uwe Kleine-König wrote:
> Hello,
> 
> this series convert all platform drivers below drivers/net/mdio to
> use remove_new. The motivation is to get rid of an integer return code
> that is (mostly) ignored by the platform driver core and error prone on
> the driver side.
> 
> See commit 5c5a7680e67b ("platform: Provide a remove callback that
> returns no value") for an extended explanation and the eventual goal.
> 
> There are no interdependencies between the patches. As there are still
> quite a few drivers to convert, I'm happy about every patch that makes
> it in. So even if there is a merge conflict with one patch until you
> apply, please apply the remainder of this series anyhow.
> 
> Best regards
> Uwe

For series,

Reviewed-by: Simon Horman <horms@kernel.org>


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2023-09-21 15:04 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-18 19:50 [PATCH net-next 00/19] net: mdio: Convert to platform remove callback returning void Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 01/19] net: mdio: aspeed: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 02/19] net: mdio: bcm-iproc: " Uwe Kleine-König
2023-09-18 20:09   ` Florian Fainelli
2023-09-18 19:50 ` [PATCH net-next 03/19] net: mdio: bcm-unimac: " Uwe Kleine-König
2023-09-18 20:09   ` Florian Fainelli
2023-09-18 19:50 ` [PATCH net-next 04/19] net: mdio: gpio: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 05/19] net: mdio: hisi-femac: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 06/19] net: mdio: ipq4019: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 07/19] net: mdio: ipq8064: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 08/19] net: mdio: moxart: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 09/19] net: mdio: mscc-miim: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 10/19] net: mdio: mux-bcm-iproc: " Uwe Kleine-König
2023-09-18 20:09   ` Florian Fainelli
2023-09-18 19:50 ` [PATCH net-next 11/19] net: mdio: mux-bcm6368: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 12/19] net: mdio: mux-gpio: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 13/19] net: mdio: mux-meson-g12a: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 14/19] net: mdio: mux-meson-gxl: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 15/19] net: mdio: mux-mmioreg: " Uwe Kleine-König
2023-09-18 19:50 ` [PATCH net-next 16/19] net: mdio: mux-multiplexer: " Uwe Kleine-König
2023-09-18 19:51 ` [PATCH net-next 17/19] net: mdio: octeon: " Uwe Kleine-König
2023-09-18 19:51 ` [PATCH net-next 18/19] net: mdio: sun4i: " Uwe Kleine-König
2023-09-19 17:22   ` Jernej Škrabec
2023-09-18 19:51 ` [PATCH net-next 19/19] net: mdio: xgene: " Uwe Kleine-König
2023-09-21 15:04 ` [PATCH net-next 00/19] net: mdio: " Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).