Skip to content

Commit 00e825c

Browse files
committed
sh: Fix clock framework compiler warnings.
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>
1 parent d643510 commit 00e825c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/sh/kernel/cpu/clock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void clk_disable(struct clk *clk)
153153
unsigned long flags;
154154

155155
if (!clk)
156-
return -EINVAL;
156+
return;
157157

158158
spin_lock_irqsave(&clock_lock, flags);
159159
__clk_disable(clk);

0 commit comments

Comments
 (0)