Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119950
b: refs/heads/master
c: e8e5752
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Halasa authored and David S. Miller committed Dec 17, 2008
1 parent fabb995 commit f0fa67f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a3de25544dadab1971847f28f33b1cd0d1770a6
refs/heads/master: e8e5752dc0a56a01527055b0c37510b1d6b6b861
5 changes: 3 additions & 2 deletions trunk/drivers/net/phy/mdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ int mdiobus_register(struct mii_bus *bus)
return -EINVAL;
}

bus->state = MDIOBUS_REGISTERED;

mutex_init(&bus->mdio_lock);

if (bus->reset)
Expand All @@ -123,6 +121,9 @@ int mdiobus_register(struct mii_bus *bus)
}
}

if (!err)
bus->state = MDIOBUS_REGISTERED;

pr_info("%s: probed\n", bus->name);

return err;
Expand Down

0 comments on commit f0fa67f

Please sign in to comment.