1 --- a/drivers/net/phy/Kconfig
2 +++ b/drivers/net/phy/Kconfig
5 Currently supports the ADM6996F switch
8 + tristate "Driver for Marvell switches"
11 + Currently supports the Marvell 88E6060 switch.
14 bool "Driver for MDIO Bus/PHY emulation with fixed speed/link PHYs"
16 --- a/drivers/net/phy/Makefile
17 +++ b/drivers/net/phy/Makefile
19 obj-$(CONFIG_BROADCOM_PHY) += broadcom.o
20 obj-$(CONFIG_ICPLUS_PHY) += icplus.o
21 obj-$(CONFIG_ADM6996_PHY) += adm6996.o
22 +obj-$(CONFIG_MVSWITCH_PHY) += mvswitch.o
23 obj-$(CONFIG_REALTEK_PHY) += realtek.o
24 obj-$(CONFIG_FIXED_PHY) += fixed.o
25 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
26 --- a/drivers/net/phy/mdio_bus.c
27 +++ b/drivers/net/phy/mdio_bus.c
30 #include <asm/uaccess.h>
32 +static void mdio_dev_release(struct device *dev)
39 * mdiobus_register - bring up all the PHYs on a given bus and attach them to bus
40 * @bus: target mii_bus
43 phydev->dev.parent = bus->dev;
44 phydev->dev.bus = &mdio_bus_type;
45 + phydev->dev.release = mdio_dev_release;
46 snprintf(phydev->dev.bus_id, BUS_ID_SIZE, PHY_ID_FMT, bus->id, i);