diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-01-06 20:11:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-07 14:31:27 -0500 |
commit | 711fdba37a3dd7ee487e28767f9f0e67144cbf80 (patch) | |
tree | e152e8b038e05908c7fb1271f751dfa8462d6034 /drivers/net/phy/mdio_device.c | |
parent | a9049e0c513c4521dbfaa302af8ed08b3366b41f (diff) | |
download | blackbird-op-linux-711fdba37a3dd7ee487e28767f9f0e67144cbf80.tar.gz blackbird-op-linux-711fdba37a3dd7ee487e28767f9f0e67144cbf80.zip |
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>
Diffstat (limited to 'drivers/net/phy/mdio_device.c')
-rw-r--r-- | drivers/net/phy/mdio_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/mdio_device.c b/drivers/net/phy/mdio_device.c index 64e3777c85b4..9c88e6749b9a 100644 --- a/drivers/net/phy/mdio_device.c +++ b/drivers/net/phy/mdio_device.c @@ -46,6 +46,8 @@ struct mdio_device *mdio_device_create(struct mii_bus *bus, int addr) mdiodev->dev.release = mdio_device_release; mdiodev->dev.parent = &bus->dev; mdiodev->dev.bus = &mdio_bus_type; + mdiodev->device_free = mdio_device_free; + mdiodev->device_remove = mdio_device_remove; mdiodev->bus = bus; mdiodev->addr = addr; |