Skip to content

Commit

Permalink
drivers: cpuidle: Remove cpuidle-arm64 duplicate error messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lorenzo Pieralisi authored and Daniel Lezcano committed Nov 19, 2014
1 parent c00bc5d commit 18f95a3
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions drivers/cpuidle/cpuidle-arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);

0 comments on commit 18f95a3

Please sign in to comment.