mdio: Abstract device_remove() and device_free()
Make device_free and device_remove operations in the mdio device structure, so the core code does not need to differentiate between phy devices and generic mdio devices. Signed-off-by:Andrew Lunn <andrew@lunn.ch> Reviewed-by:
Florian Fainelli <f.fainelli@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/phy/mdio_bus.c 9 additions, 14 deletionsdrivers/net/phy/mdio_bus.c
- drivers/net/phy/mdio_device.c 2 additions, 0 deletionsdrivers/net/phy/mdio_device.c
- drivers/net/phy/phy_device.c 18 additions, 0 deletionsdrivers/net/phy/phy_device.c
- include/linux/mdio.h 4 additions, 0 deletionsinclude/linux/mdio.h
Please register or sign in to comment