]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/au1000_eth.c
SUN3/3X Lance trivial fix improved
[linux-2.6-omap-h63xx.git] / drivers / net / au1000_eth.c
index 7db3c8af08942a76aa4244f430ec5b66691dd8b7..69ae229b680e25ee5226528736bcd8c111e66da5 100644 (file)
@@ -37,7 +37,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/sched.h>
 #include <linux/string.h>
 #include <linux/timer.h>
 #include <linux/errno.h>
@@ -360,7 +359,8 @@ static int mii_probe (struct net_device *dev)
        BUG_ON(!phydev);
        BUG_ON(phydev->attached_dev);
 
-       phydev = phy_connect(dev, phydev->dev.bus_id, &au1000_adjust_link, 0);
+       phydev = phy_connect(dev, phydev->dev.bus_id, &au1000_adjust_link, 0,
+                       PHY_INTERFACE_MODE_MII);
 
        if (IS_ERR(phydev)) {
                printk(KERN_ERR "%s: Could not attach to PHY\n", dev->name);