SH: cpuidle: check error code at init
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 17 Apr 2013 13:32:57 +0000 (13:32 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 21 Apr 2013 22:35:53 +0000 (00:35 +0200)
commit38a94f4169e03494cbf850919b4b0a7e53e84bfd
treeec8574a75cf249c0a38749369d6720dda7898f62
parent0a4f841e9c473be84a1ed0c14f65058c29238ce1
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>
arch/sh/include/asm/suspend.h
arch/sh/kernel/cpu/shmobile/cpuidle.c
arch/sh/kernel/cpu/shmobile/pm.c