浏览代码

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>
Paul Mundt 16 年之前
父节点
当前提交
00e825c6b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/sh/kernel/cpu/clock.c

+ 1 - 1
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);