commit | 7912825d8b755e6a5b9839eab910f451b0271aba | [log] [tgz] |
---|---|---|
author | Paul Mundt <lethal@linux-sh.org> | Fri Jun 24 17:36:23 2011 +0900 |
committer | Paul Mundt <lethal@linux-sh.org> | Fri Jun 24 17:36:23 2011 +0900 |
tree | 2f74cef36372a9a9c1462b62f6f8ab648ad24d8a | |
parent | 225ca45c3c64964163ea1fa85e2081af85956eed [diff] |
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>