1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-18 20:37:42 +03:00
openwrt-xburst/target/linux/ixp4xx/patches-2.6.29/204-npe_driver_add_missing_phy_disconnect.patch
juhosg 0ae049b500 [ixp4xx] experimental multiphy support for 2.6.29
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-29 20:31:27 +00:00

11 lines
365 B
Diff

--- a/drivers/net/arm/ixp4xx_eth.c
+++ b/drivers/net/arm/ixp4xx_eth.c
@@ -1243,6 +1243,7 @@ static int __devexit eth_remove_one(stru
struct net_device *dev = platform_get_drvdata(pdev);
struct port *port = netdev_priv(dev);
+ phy_disconnect(port->phydev);
unregister_netdev(dev);
npe_port_tab[NPE_ID(port->id)] = NULL;
platform_set_drvdata(pdev, NULL);