mac80211: fix RTS threshold not being set for mac80211 devices
[openwrt.git] / target / linux / ixp4xx / patches-2.6.31 / 205-npe_driver_separate_phy_functions.patch
index 857d959..b9835a0 100644 (file)
        if ((err = register_netdev(dev)))
                goto err_phy_dis;
  
        if ((err = register_netdev(dev)))
                goto err_phy_dis;
  
-@@ -1249,7 +1283,7 @@ static int __devexit eth_remove_one(stru
-       struct net_device *dev = platform_get_drvdata(pdev);
+@@ -1232,7 +1266,7 @@ static int __devinit eth_init_one(struct
+       return 0;
+ err_phy_dis:
+-      phy_disconnect(port->phydev);
++      ixp4xx_phy_disconnect(port->phydev);
+ err_free_mem:
+       npe_port_tab[NPE_ID(port->id)] = NULL;
+       platform_set_drvdata(pdev, NULL);
+@@ -1250,7 +1284,7 @@ static int __devexit eth_remove_one(stru
        struct port *port = netdev_priv(dev);
  
        struct port *port = netdev_priv(dev);
  
+       unregister_netdev(dev);
 -      phy_disconnect(port->phydev);
 +      ixp4xx_phy_disconnect(dev);
 -      phy_disconnect(port->phydev);
 +      ixp4xx_phy_disconnect(dev);
-       unregister_netdev(dev);
-       phy_disconnect(port->phydev);
        npe_port_tab[NPE_ID(port->id)] = NULL;
        npe_port_tab[NPE_ID(port->id)] = NULL;
+       platform_set_drvdata(pdev, NULL);
+       npe_release(port->npe);
This page took 0.038526 seconds and 4 git commands to generate.