]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/phy/mdio_bus.c
Marvell PHY m88e1111 driver fix
[linux-2.6-omap-h63xx.git] / drivers / net / phy / mdio_bus.c
index c30196d0ad1681de95f5c14df66d8568c1200bd9..963630c65ca940d9dfc59ed57370c54dbfed7847 100644 (file)
@@ -49,13 +49,13 @@ int mdiobus_register(struct mii_bus *bus)
        int i;
        int err = 0;
 
-       spin_lock_init(&bus->mdio_lock);
-
        if (NULL == bus || NULL == bus->name ||
                        NULL == bus->read ||
                        NULL == bus->write)
                return -EINVAL;
 
+       mutex_init(&bus->mdio_lock);
+
        if (bus->reset)
                bus->reset(bus);