提交 18f95a36 编写于 作者: L Lorenzo Pieralisi 提交者: Daniel Lezcano

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: NKevin Hilman <khilman@linaro.org>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
上级 c00bc5df
...@@ -104,11 +104,8 @@ static int __init arm64_idle_init(void) ...@@ -104,11 +104,8 @@ static int __init arm64_idle_init(void)
* reason to initialize the idle driver if only wfi is supported. * reason to initialize the idle driver if only wfi is supported.
*/ */
ret = dt_init_idle_driver(drv, arm64_idle_state_match, 1); ret = dt_init_idle_driver(drv, arm64_idle_state_match, 1);
if (ret <= 0) { if (ret <= 0)
if (ret)
pr_err("failed to initialize idle states\n");
return ret ? : -ENODEV; return ret ? : -ENODEV;
}
/* /*
* Call arch CPU operations in order to initialize * Call arch CPU operations in order to initialize
...@@ -122,12 +119,6 @@ static int __init arm64_idle_init(void) ...@@ -122,12 +119,6 @@ static int __init arm64_idle_init(void)
} }
} }
ret = cpuidle_register(drv, NULL); return cpuidle_register(drv, NULL);
if (ret) {
pr_err("failed to register cpuidle driver\n");
return ret;
}
return 0;
} }
device_initcall(arm64_idle_init); device_initcall(arm64_idle_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册