From: Daniel Lezcano Date: Sat, 19 Jan 2013 05:57:58 +0000 (-0800) Subject: ARM: EXYNOS: handle properly the return values X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~68^2~7^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5db9f436213d81f053e3f6d69d367637b02fe95e;p=pandora-kernel.git ARM: EXYNOS: handle properly the return values 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 Acked-by: Amit Daniel Kachhap Signed-off-by: Kukjin Kim --- Reading git-diff-tree failed