ARM: EXYNOS: handle properly the return values
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 19 Jan 2013 05:57:58 +0000 (21:57 -0800)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 9 Apr 2013 15:12:26 +0000 (00:12 +0900)
The cpuidle_register_driver return value is not checked.
The init function returns always -EIO when cpuidle_register_device
fails but the error could be different.

This patch fixes that by checking the cpuidle_register_driver properly
and returning the correct value when cpuidle_register_device fails.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

No differences found