aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500/cpuidle.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500/cpuidle.c')
-rw-r--r--arch/arm/mach-ux500/cpuidle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/cpuidle.c b/arch/arm/mach-ux500/cpuidle.c
index c29c1bf5ff8b..5657d4af301c 100644
--- a/arch/arm/mach-ux500/cpuidle.c
+++ b/arch/arm/mach-ux500/cpuidle.c
@@ -125,7 +125,7 @@ int __init ux500_idle_init(void)
125 return ret; 125 return ret;
126 } 126 }
127 127
128 for_each_online_cpu(cpu) { 128 for_each_possible(cpu) {
129 device = &per_cpu(ux500_cpuidle_device, cpu); 129 device = &per_cpu(ux500_cpuidle_device, cpu);
130 device->cpu = cpu; 130 device->cpu = cpu;
131 ret = cpuidle_register_device(device); 131 ret = cpuidle_register_device(device);
@@ -139,7 +139,7 @@ out:
139 return ret; 139 return ret;
140 140
141out_unregister: 141out_unregister:
142 for_each_online_cpu(cpu) { 142 for_each_possible_cpu(cpu) {
143 device = &per_cpu(ux500_cpuidle_device, cpu); 143 device = &per_cpu(ux500_cpuidle_device, cpu);
144 cpuidle_unregister_device(device); 144 cpuidle_unregister_device(device);
145 } 145 }