Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195157
b: refs/heads/master
c: 0e995cd
h: refs/heads/master
i:
  195155: 5353891
v: v3
  • Loading branch information
Sonic Zhang authored and David S. Miller committed May 18, 2010
1 parent 20ccb22 commit 7747bbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2bfa0f0c9a37460ee69128da411f6d310c1c983d
refs/heads/master: 0e995cd3d3c78377a0bc7d38236fc50e5438fabb
6 changes: 6 additions & 0 deletions trunk/drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1466,6 +1466,11 @@ static int __devinit bfin_mac_probe(struct platform_device *pdev)
}
pd = pdev->dev.platform_data;
lp->mii_bus = platform_get_drvdata(pd);
if (!lp->mii_bus) {
dev_err(&pdev->dev, "Cannot get mii_bus!\n");
rc = -ENODEV;
goto out_err_mii_bus_probe;
}
lp->mii_bus->priv = ndev;

rc = mii_probe(ndev);
Expand Down Expand Up @@ -1511,6 +1516,7 @@ static int __devinit bfin_mac_probe(struct platform_device *pdev)
out_err_mii_probe:
mdiobus_unregister(lp->mii_bus);
mdiobus_free(lp->mii_bus);
out_err_mii_bus_probe:
peripheral_free_list(pin_req);
out_err_probe_mac:
platform_set_drvdata(pdev, NULL);
Expand Down

0 comments on commit 7747bbf

Please sign in to comment.