Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37970
b: refs/heads/master
c: b7a00ec
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik committed Oct 1, 2006
1 parent 087ca73 commit 83bd285
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 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: 1c7da74c4aab595a994beb5fe728ebf0d0b41f59
refs/heads/master: b7a00ecd557859c4037b6465fdd6c9a49b1fa649
6 changes: 5 additions & 1 deletion trunk/drivers/net/phy/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,13 @@ static int fixed_mdio_register_device(int number, int speed, int duplex)
goto probe_fail;
}

device_bind_driver(&phydev->dev);
err = device_bind_driver(&phydev->dev);

up_write(&phydev->dev.bus->subsys.rwsem);

if (err)
goto probe_fail;

return 0;

probe_fail:
Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/net/phy/phy_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ struct phy_device *phy_attach(struct net_device *dev,

err = d->driver->probe(d);

if (err < 0)
return ERR_PTR(err);
if (err >= 0)
err = device_bind_driver(d);

device_bind_driver(d);
up_write(&d->bus->subsys.rwsem);

if (err)
return ERR_PTR(err);
}

if (phydev->attached_dev) {
Expand Down

0 comments on commit 83bd285

Please sign in to comment.