Skip to contentSkip to conversation

net: phy: stop exporting phy_driver_unregister

PATCH Applied Heiner Kallweit 2 participants 2 messages Sep 27, 2025 – Sep 30, 2025

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: stop exporting phy_driver_unregister

After 42e2a9e11a1d ("net: phy: dp83640: improve phydev and driver removal handling") we can stop exporting also phy_driver_unregister().

---
 drivers/net/phy/phy_device.c | 11 +++++------
 include/linux/phy.h          |  1 -
 2 files changed, 5 insertions(+), 7 deletions(-)
drivers/net/phy/phy_device.c +5 -6
index 01269b865..1c0264041 100644
@@ -3589,6 +3589,11 @@ static int phy_driver_register(struct phy_driver *new_driver,
 	return 0;
 }
 
+static void phy_driver_unregister(struct phy_driver *drv)
+{
+	driver_unregister(&drv->mdiodrv.driver);
+}
+
 int phy_drivers_register(struct phy_driver *new_driver, int n,
 			 struct module *owner)
 {
@@ -3606,12 +3611,6 @@ int phy_drivers_register(struct phy_driver *new_driver, int n,
 }
 EXPORT_SYMBOL(phy_drivers_register);
 
-void phy_driver_unregister(struct phy_driver *drv)
-{
-	driver_unregister(&drv->mdiodrv.driver);
-}
-EXPORT_SYMBOL(phy_driver_unregister);
-
 void phy_drivers_unregister(struct phy_driver *drv, int n)
 {
 	int i;
include/linux/phy.h +0 -1
index b377dfaa6..7a54a8b4d 100644
@@ -2030,7 +2030,6 @@ static inline int phy_read_status(struct phy_device *phydev)
 		return genphy_read_status(phydev);
 }
 
-void phy_driver_unregister(struct phy_driver *drv);
 void phy_drivers_unregister(struct phy_driver *drv, int n);
 int phy_drivers_register(struct phy_driver *new_driver, int n,
 			 struct module *owner);
Signature · 1 line
2.51.0
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 8 lines · On Sat, 27 Sep 2025 21:52:30 +0200 you wrote:

After 42e2a9e11a1d ("net: phy: dp83640: improve phydev and driver removal handling") we can stop exporting also phy_driver_unregister().

---
 drivers/net/phy/phy_device.c | 11 +++++------
 include/linux/phy.h          |  1 -
 2 files changed, 5 insertions(+), 7 deletions(-)

Here is the summary with links:
- [net-next] net: phy: stop exporting phy_driver_unregister

    https://git.kernel.org/netdev/net-next/c/e211c463b748

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html