diff options
Diffstat (limited to 'drivers/net/phy/fixed.c')
-rw-r--r-- | drivers/net/phy/fixed.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index 19f7ee63276f..94b47c8d0ab4 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed.c | |||
@@ -289,9 +289,13 @@ static int fixed_mdio_register_device(int number, int speed, int duplex) | |||
289 | goto probe_fail; | 289 | goto probe_fail; |
290 | } | 290 | } |
291 | 291 | ||
292 | device_bind_driver(&phydev->dev); | 292 | err = device_bind_driver(&phydev->dev); |
293 | |||
293 | up_write(&phydev->dev.bus->subsys.rwsem); | 294 | up_write(&phydev->dev.bus->subsys.rwsem); |
294 | 295 | ||
296 | if (err) | ||
297 | goto probe_fail; | ||
298 | |||
295 | return 0; | 299 | return 0; |
296 | 300 | ||
297 | probe_fail: | 301 | probe_fail: |