summaryrefslogtreecommitdiff
path: root/target/linux/ixp4xx/patches-2.6.29/204-npe_driver_add_missing_phy_disconnect.patch
blob: eb9cf869a23cf1d3e5f06d935ecd805aa49f7c40 (plain)
1
2
3
4
5
6
7
8
9
10
--- 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);