Skip to content

Commit

Permalink
sh: Fix clock framework compiler warnings.
Browse files Browse the repository at this point in the history
  CC      arch/sh/kernel/cpu/clock.o
  arch/sh/kernel/cpu/clock.c: In function 'clk_disable':
  arch/sh/kernel/cpu/clock.c:156: warning: 'return' with a value, in function returning void

Introduced by ("sh: enable and disable clocks recursively").

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Dec 22, 2008
1 parent d643510 commit 00e825c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/cpu/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void clk_disable(struct clk *clk)
unsigned long flags;

if (!clk)
return -EINVAL;
return;

spin_lock_irqsave(&clock_lock, flags);
__clk_disable(clk);
Expand Down

0 comments on commit 00e825c

Please sign in to comment.