Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253056
b: refs/heads/master
c: b722dbf
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed Jun 2, 2011
1 parent 2a87299 commit cb97e4c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: a3bcc23e890a6d49d6763d9eb073d711de2e0469
refs/heads/master: b722dbf176b67c75fe0f5a6b1b31f5ea8aa6117d
10 changes: 6 additions & 4 deletions trunk/drivers/net/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1781,8 +1781,8 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
ndev = alloc_etherdev(sizeof(struct emac_priv));
if (!ndev) {
dev_err(&pdev->dev, "error allocating net_device\n");
clk_put(emac_clk);
return -ENOMEM;
rc = -ENOMEM;
goto free_clk;
}

platform_set_drvdata(pdev, ndev);
Expand All @@ -1796,7 +1796,8 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
pdata = pdev->dev.platform_data;
if (!pdata) {
dev_err(&pdev->dev, "no platform data\n");
return -ENODEV;
rc = -ENODEV;
goto probe_quit;
}

/* MAC addr and PHY mask , RMII enable info from platform_data */
Expand Down Expand Up @@ -1929,8 +1930,9 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
iounmap(priv->remap_addr);

probe_quit:
clk_put(emac_clk);
free_netdev(ndev);
free_clk:
clk_put(emac_clk);
return rc;
}

Expand Down

0 comments on commit cb97e4c

Please sign in to comment.