diff options
author | 2013-01-18 21:57:58 -0800 | |
---|---|---|
committer | 2013-04-10 00:12:26 +0900 | |
commit | 5db9f436213d81f053e3f6d69d367637b02fe95e (patch) | |
tree | e567e034340e9e32ccb24b7c80c6a8edae0bf56b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ARM: EXYNOS: factor out the idle states (diff) | |
download | linux-dev-5db9f436213d81f053e3f6d69d367637b02fe95e.tar.xz linux-dev-5db9f436213d81f053e3f6d69d367637b02fe95e.zip |
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 <daniel.lezcano@linaro.org>
Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions