summaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-01-02 14:23:34 -0800
committerJakub Kicinski <kuba@kernel.org>2024-01-02 14:23:39 -0800
commit3e64db35bc37edbe9e37aaa987df92cde12ddb6c (patch)
treec83a9d7355a01ccc860609c03356170d26145136 /drivers/net/phy
parent1e71017b6e12637db3d41bf18b15b76372837679 (diff)
Revert "net: mdio: get/put device node during (un)registration"
This reverts commit cff9c565e65f3622e8dc1dcc21c1520a083dff35. Revert based on feedback from Russell. Link: https://lore.kernel.org/all/ZZPtUIRerqTI2%2Fyh@shell.armlinux.org.uk/ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/mdio_bus.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
index 4a30757c4ff8..6cf73c15635b 100644
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -787,9 +787,6 @@ void mdiobus_unregister(struct mii_bus *bus)
gpiod_set_value_cansleep(bus->reset_gpiod, 1);
device_del(&bus->dev);
-
- if (bus->__unregister_callback)
- bus->__unregister_callback(bus);
}
EXPORT_SYMBOL(mdiobus_unregister);