mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ARM: tegra: cpuidle: remove useless initialization
dev->state_count is initialized automatically by cpuidle_register_device(). When drv->state_count is equal to dev->state_count, no need to init this field, so removing it. Signed-off-by: Daniel Lezcano <[email protected]> Reviewed-by: Joseph Lo <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
14ad7a119b
commit
0697598db5
3 changed files with 0 additions and 3 deletions
|
|
@ -49,7 +49,6 @@ int __init tegra114_cpuidle_init(void)
|
|||
dev = &per_cpu(tegra_idle_device, cpu);
|
||||
dev->cpu = cpu;
|
||||
|
||||
dev->state_count = drv->state_count;
|
||||
ret = cpuidle_register_device(dev);
|
||||
if (ret) {
|
||||
pr_err("CPU%u: CPUidle device registration failed\n",
|
||||
|
|
|
|||
|
|
@ -243,7 +243,6 @@ int __init tegra20_cpuidle_init(void)
|
|||
dev->coupled_cpus = *cpu_possible_mask;
|
||||
#endif
|
||||
|
||||
dev->state_count = drv->state_count;
|
||||
ret = cpuidle_register_device(dev);
|
||||
if (ret) {
|
||||
pr_err("CPU%u: CPUidle device registration failed\n",
|
||||
|
|
|
|||
|
|
@ -176,7 +176,6 @@ int __init tegra30_cpuidle_init(void)
|
|||
dev = &per_cpu(tegra_idle_device, cpu);
|
||||
dev->cpu = cpu;
|
||||
|
||||
dev->state_count = drv->state_count;
|
||||
ret = cpuidle_register_device(dev);
|
||||
if (ret) {
|
||||
pr_err("CPU%u: CPUidle device registration failed\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue