diff options
author | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2014-10-15 18:29:54 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-11-19 10:16:28 +0100 |
commit | 18f95a3640dbf421ab9532e517070a0c1cd4d582 (patch) | |
tree | 74f6a5d328f8d0f5026db63d5760c355bf938cc5 /drivers/cpuidle | |
parent | c00bc5df7c01a189843cb048cf29e2a445e0037a (diff) | |
download | linux-18f95a3640dbf421ab9532e517070a0c1cd4d582.tar.bz2 |
drivers: cpuidle: Remove cpuidle-arm64 duplicate error messages
Current CPUidle driver for arm64 machines spits errors upon idle
state initialization and cpuidle driver registration failures.
These error messages are already printed in core code so there is
no need to print them again.
This patch removes the duplicate print messages from the cpuidle-arm64
driver.
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r-- | drivers/cpuidle/cpuidle-arm64.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/cpuidle/cpuidle-arm64.c b/drivers/cpuidle/cpuidle-arm64.c index 50997ea942fc..1b10f92ecd5a 100644 --- a/drivers/cpuidle/cpuidle-arm64.c +++ b/drivers/cpuidle/cpuidle-arm64.c @@ -104,11 +104,8 @@ static int __init arm64_idle_init(void) * reason to initialize the idle driver if only wfi is supported. */ ret = dt_init_idle_driver(drv, arm64_idle_state_match, 1); - if (ret <= 0) { - if (ret) - pr_err("failed to initialize idle states\n"); + if (ret <= 0) return ret ? : -ENODEV; - } /* * Call arch CPU operations in order to initialize @@ -122,12 +119,6 @@ static int __init arm64_idle_init(void) } } - ret = cpuidle_register(drv, NULL); - if (ret) { - pr_err("failed to register cpuidle driver\n"); - return ret; - } - - return 0; + return cpuidle_register(drv, NULL); } device_initcall(arm64_idle_init); |