Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179107
b: refs/heads/master
c: 1ca518b
h: refs/heads/master
i:
  179105: 8ec381d
  179103: 7df5b2d
v: v3
  • Loading branch information
Sriram authored and David S. Miller committed Jan 8, 2010
1 parent deafb58 commit 84e274a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 4d907069bc1b745f4abd4745c332d33098e733b8
refs/heads/master: 1ca518b64b4b5865b677f292322e893fa89997d4
4 changes: 3 additions & 1 deletion trunk/drivers/net/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2711,6 +2711,8 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
SET_ETHTOOL_OPS(ndev, &ethtool_ops);
netif_napi_add(ndev, &priv->napi, emac_poll, EMAC_POLL_WEIGHT);

clk_enable(emac_clk);

/* register the network device */
SET_NETDEV_DEV(ndev, &pdev->dev);
rc = register_netdev(ndev);
Expand All @@ -2720,7 +2722,6 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
goto netdev_reg_err;
}

clk_enable(emac_clk);

/* MII/Phy intialisation, mdio bus registration */
emac_mii = mdiobus_alloc();
Expand Down Expand Up @@ -2760,6 +2761,7 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)

netdev_reg_err:
mdio_alloc_err:
clk_disable(emac_clk);
no_irq_res:
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(res->start, res->end - res->start + 1);
Expand Down

0 comments on commit 84e274a

Please sign in to comment.