Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120037
b: refs/heads/master
c: d12cfac
h: refs/heads/master
i:
  120035: ca44e0a
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Dec 22, 2008
1 parent 591df4d commit 630bbb8
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 4a4a9be3ebdbf17957d29e3521f328a1145f9431
refs/heads/master: d12cfac146d2b512496bf974b83ee1210032065f
10 changes: 10 additions & 0 deletions trunk/arch/sh/kernel/cpu/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ int clk_enable(struct clk *clk)
unsigned long flags;
int ret;

if (!clk)
return -EINVAL;

clk_enable(clk->parent);

spin_lock_irqsave(&clock_lock, flags);
ret = __clk_enable(clk);
spin_unlock_irqrestore(&clock_lock, flags);
Expand Down Expand Up @@ -147,9 +152,14 @@ void clk_disable(struct clk *clk)
{
unsigned long flags;

if (!clk)
return -EINVAL;

spin_lock_irqsave(&clock_lock, flags);
__clk_disable(clk);
spin_unlock_irqrestore(&clock_lock, flags);

clk_disable(clk->parent);
}
EXPORT_SYMBOL_GPL(clk_disable);

Expand Down

0 comments on commit 630bbb8

Please sign in to comment.