sh: clkfwk: Handle clk_get_sys() returning an ERR_PTR.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 12 May 2009 07:07:40 +0000 (16:07 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 12 May 2009 07:07:40 +0000 (16:07 +0900)
commitf3f8290cb3fa4aa627321530bb85d5f35e487433
treef7ceae8076ff77ae69622495c3ab081ff1f8e363
parent0dae89572cbcd5f676ea52a9448d9639d97a53d6
sh: clkfwk: Handle clk_get_sys() returning an ERR_PTR.

clk_get() needs to also perform an IS_ERR() check to see whether
clk_get_sys() failed or not.

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