Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281950
b: refs/heads/master
c: e735489
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed Dec 28, 2011
1 parent 26f77af commit 6488194
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: f1f802c9026da6774a72963178ff7435f539fb09
refs/heads/master: e735489976c356a189f7332e6ff4b0dee2ede434
10 changes: 5 additions & 5 deletions trunk/drivers/net/can/flexcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ static int flexcan_open(struct net_device *dev)
struct flexcan_priv *priv = netdev_priv(dev);
int err;

clk_enable(priv->clk);
clk_prepare_enable(priv->clk);

err = open_candev(dev);
if (err)
Expand All @@ -824,7 +824,7 @@ static int flexcan_open(struct net_device *dev)
out_close:
close_candev(dev);
out:
clk_disable(priv->clk);
clk_disable_unprepare(priv->clk);

return err;
}
Expand All @@ -838,7 +838,7 @@ static int flexcan_close(struct net_device *dev)
flexcan_chip_stop(dev);

free_irq(dev->irq, dev);
clk_disable(priv->clk);
clk_disable_unprepare(priv->clk);

close_candev(dev);

Expand Down Expand Up @@ -877,7 +877,7 @@ static int __devinit register_flexcandev(struct net_device *dev)
struct flexcan_regs __iomem *regs = priv->base;
u32 reg, err;

clk_enable(priv->clk);
clk_prepare_enable(priv->clk);

/* select "bus clock", chip must be disabled */
flexcan_chip_disable(priv);
Expand Down Expand Up @@ -911,7 +911,7 @@ static int __devinit register_flexcandev(struct net_device *dev)
out:
/* disable core and turn off clocks */
flexcan_chip_disable(priv);
clk_disable(priv->clk);
clk_disable_unprepare(priv->clk);

return err;
}
Expand Down

0 comments on commit 6488194

Please sign in to comment.