From: Paul Mundt Date: Tue, 18 Nov 2008 05:21:34 +0000 (+0900) Subject: sh: Fix clock framework compiler warnings. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00e825c6b99b39f12751ea45d38bb4d900de70f4;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 --- diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c index 717056b3d400..7b17137536d6 100644 --- a/arch/sh/kernel/cpu/clock.c +++ b/arch/sh/kernel/cpu/clock.c @@ -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);