diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-04-17 15:32:57 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-22 00:35:53 +0200 |
commit | 38a94f4169e03494cbf850919b4b0a7e53e84bfd (patch) | |
tree | ec8574a75cf249c0a38749369d6720dda7898f62 /arch/sh/kernel/cpu/shmobile/pm.c | |
parent | SH: cpuidle: initialize the driver's states directly (diff) | |
download | linux-38a94f4169e03494cbf850919b4b0a7e53e84bfd.tar.xz 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/kernel/cpu/shmobile/pm.c')
-rw-r--r-- | arch/sh/kernel/cpu/shmobile/pm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/pm.c b/arch/sh/kernel/cpu/shmobile/pm.c index 08d27fac8d08..ac37b7234f85 100644 --- a/arch/sh/kernel/cpu/shmobile/pm.c +++ b/arch/sh/kernel/cpu/shmobile/pm.c @@ -150,8 +150,7 @@ static const struct platform_suspend_ops sh_pm_ops = { static int __init sh_pm_init(void) { suspend_set_ops(&sh_pm_ops); - sh_mobile_setup_cpuidle(); - return 0; + return sh_mobile_setup_cpuidle(); } late_initcall(sh_pm_init); |