mdio: Abstract device_remove() and device_free()
commit711fdba37a3dd7ee487e28767f9f0e67144cbf80
authorAndrew Lunn <andrew@lunn.ch>
Wed, 6 Jan 2016 19:11:27 +0000 (6 20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2016 19:31:27 +0000 (7 14:31 -0500)
treee152e8b038e05908c7fb1271f751dfa8462d6034
parenta9049e0c513c4521dbfaa302af8ed08b3366b41f
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>
drivers/net/phy/mdio_bus.c
drivers/net/phy/mdio_device.c
drivers/net/phy/phy_device.c
include/linux/mdio.h