sh: Tidy up pre-clkdev clk_get() error handling.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 24 Jun 2011 08:36:23 +0000 (17:36 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 24 Jun 2011 08:36:23 +0000 (17:36 +0900)
commit7912825d8b755e6a5b9839eab910f451b0271aba
tree2f74cef36372a9a9c1462b62f6f8ab648ad24d8a
parent225ca45c3c64964163ea1fa85e2081af85956eed
sh: Tidy up pre-clkdev clk_get() error handling.

clk_get() used to return NULL or an errno value depending on whether a
clkdev lookup failed or a clock wasn't found in the primary clock list.
As these disjoint paths were unified and everything now is handled via
clkdev lookups, the NULL case never makes it out of clk_get(). Update
accordingly and always look to the errno value.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/board-apsh4a3a.c
arch/sh/boards/board-apsh4ad0a.c
arch/sh/boards/board-sh7785lcr.c
arch/sh/boards/board-urquell.c
arch/sh/boards/mach-sdk7786/setup.c