Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368179
b: refs/heads/master
c: 624e2d2
h: refs/heads/master
i:
  368177: 61bdf9a
  368175: c0ea518
v: v3
  • Loading branch information
Jonas Gorski authored and David S. Miller committed Mar 10, 2013
1 parent dc84dba commit 355311a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 2a80b5e1580cf6b2c534674080dc3fdf788b06b8
refs/heads/master: 624e2d21356a40ad7200cb30c4f966741d805a79
12 changes: 6 additions & 6 deletions trunk/drivers/net/ethernet/broadcom/bcm63xx_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ static int bcm_enet_probe(struct platform_device *pdev)
ret = PTR_ERR(priv->mac_clk);
goto out;
}
clk_enable(priv->mac_clk);
clk_prepare_enable(priv->mac_clk);

/* initialize default and fetch platform data */
priv->rx_ring_size = BCMENET_DEF_RX_DESC;
Expand Down Expand Up @@ -1699,7 +1699,7 @@ static int bcm_enet_probe(struct platform_device *pdev)
priv->phy_clk = NULL;
goto out_put_clk_mac;
}
clk_enable(priv->phy_clk);
clk_prepare_enable(priv->phy_clk);
}

/* do minimal hardware init to be able to probe mii bus */
Expand Down Expand Up @@ -1800,12 +1800,12 @@ static int bcm_enet_probe(struct platform_device *pdev)
/* turn off mdc clock */
enet_writel(priv, 0, ENET_MIISC_REG);
if (priv->phy_clk) {
clk_disable(priv->phy_clk);
clk_disable_unprepare(priv->phy_clk);
clk_put(priv->phy_clk);
}

out_put_clk_mac:
clk_disable(priv->mac_clk);
clk_disable_unprepare(priv->mac_clk);
clk_put(priv->mac_clk);
out:
free_netdev(dev);
Expand Down Expand Up @@ -1843,10 +1843,10 @@ static int bcm_enet_remove(struct platform_device *pdev)

/* disable hw block clocks */
if (priv->phy_clk) {
clk_disable(priv->phy_clk);
clk_disable_unprepare(priv->phy_clk);
clk_put(priv->phy_clk);
}
clk_disable(priv->mac_clk);
clk_disable_unprepare(priv->mac_clk);
clk_put(priv->mac_clk);

platform_set_drvdata(pdev, NULL);
Expand Down

0 comments on commit 355311a

Please sign in to comment.