]> git.openfabrics.org - ~emulex/infiniband.git/commit
sh: clkfwk: Fix up the clk_enable() error path.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 11 May 2009 20:30:10 +0000 (05:30 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 May 2009 20:30:10 +0000 (05:30 +0900)
commitae891a4264c91246c0b4c22be68b9838747ae48d
tree18da25fbd0322f6d2f4288dbf741609e53ae297e
parent154502e160e02dee7b00ec2149762ae5d48e0bb4
sh: clkfwk: Fix up the clk_enable() error path.

There are a couple of instances where a clk_enable() can fail, which the
SH-Mobile code presently handles, but doesn't get reported all the way
back up. This fixes up the return type so the errors make it all the way
down to the drivers.

Additionally, we now also error out properly if the parent enable fails.
Prep work for aggressively turning off unused clocks on boot.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/clock.h
arch/sh/kernel/cpu/clock.c
arch/sh/kernel/cpu/sh4a/clock-sh7722.c