diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-04-17 13:32:57 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-22 00:35:53 +0200 |
commit | 38a94f4169e03494cbf850919b4b0a7e53e84bfd (patch) | |
tree | ec8574a75cf249c0a38749369d6720dda7898f62 /arch/sh/include | |
parent | 0a4f841e9c473be84a1ed0c14f65058c29238ce1 (diff) | |
download | linux-38a94f4169e03494cbf850919b4b0a7e53e84bfd.tar.gz linux-38a94f4169e03494cbf850919b4b0a7e53e84bfd.tar.bz2 linux-38a94f4169e03494cbf850919b4b0a7e53e84bfd.zip |
SH: cpuidle: check error code at init
Registering the driver, or the device, can fail, let's check the return code
and return the error code to the PM layer.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/suspend.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/suspend.h b/arch/sh/include/asm/suspend.h index e14567a7e9a1..70ae0b2888ab 100644 --- a/arch/sh/include/asm/suspend.h +++ b/arch/sh/include/asm/suspend.h @@ -14,9 +14,9 @@ struct swsusp_arch_regs { void sh_mobile_call_standby(unsigned long mode); #ifdef CONFIG_CPU_IDLE -void sh_mobile_setup_cpuidle(void); +int sh_mobile_setup_cpuidle(void); #else -static inline void sh_mobile_setup_cpuidle(void) {} +static inline int sh_mobile_setup_cpuidle(void) { return 0; } #endif /* notifier chains for pre/post sleep hooks */ |