aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2013-04-03 08:15:18 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-08 16:20:06 -0400
commit0697598db56179dbaa9376f29703f6b94751a73f (patch)
tree4a01fff47bddb9dbfc5290760385d4c841cc5f15 /arch
parent14ad7a119b85b0ba77868882194ab5b16203b2c9 (diff)
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 <daniel.lezcano@linaro.org> Reviewed-by: Joseph Lo <josephl@nvidia.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/cpuidle-tegra114.c1
-rw-r--r--arch/arm/mach-tegra/cpuidle-tegra20.c1
-rw-r--r--arch/arm/mach-tegra/cpuidle-tegra30.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/cpuidle-tegra114.c b/arch/arm/mach-tegra/cpuidle-tegra114.c
index 0f4e8c483b34..c527cff47ee0 100644
--- a/arch/arm/mach-tegra/cpuidle-tegra114.c
+++ b/arch/arm/mach-tegra/cpuidle-tegra114.c
@@ -49,7 +49,6 @@ int __init tegra114_cpuidle_init(void)
49 dev = &per_cpu(tegra_idle_device, cpu); 49 dev = &per_cpu(tegra_idle_device, cpu);
50 dev->cpu = cpu; 50 dev->cpu = cpu;
51 51
52 dev->state_count = drv->state_count;
53 ret = cpuidle_register_device(dev); 52 ret = cpuidle_register_device(dev);
54 if (ret) { 53 if (ret) {
55 pr_err("CPU%u: CPUidle device registration failed\n", 54 pr_err("CPU%u: CPUidle device registration failed\n",
diff --git a/arch/arm/mach-tegra/cpuidle-tegra20.c b/arch/arm/mach-tegra/cpuidle-tegra20.c
index 1ad1a67890eb..b94d76a0e0c0 100644
--- a/arch/arm/mach-tegra/cpuidle-tegra20.c
+++ b/arch/arm/mach-tegra/cpuidle-tegra20.c
@@ -243,7 +243,6 @@ int __init tegra20_cpuidle_init(void)
243 dev->coupled_cpus = *cpu_possible_mask; 243 dev->coupled_cpus = *cpu_possible_mask;
244#endif 244#endif
245 245
246 dev->state_count = drv->state_count;
247 ret = cpuidle_register_device(dev); 246 ret = cpuidle_register_device(dev);
248 if (ret) { 247 if (ret) {
249 pr_err("CPU%u: CPUidle device registration failed\n", 248 pr_err("CPU%u: CPUidle device registration failed\n",
diff --git a/arch/arm/mach-tegra/cpuidle-tegra30.c b/arch/arm/mach-tegra/cpuidle-tegra30.c
index 8b50cf4ddd6f..c4e01fe0fde4 100644
--- a/arch/arm/mach-tegra/cpuidle-tegra30.c
+++ b/arch/arm/mach-tegra/cpuidle-tegra30.c
@@ -176,7 +176,6 @@ int __init tegra30_cpuidle_init(void)
176 dev = &per_cpu(tegra_idle_device, cpu); 176 dev = &per_cpu(tegra_idle_device, cpu);
177 dev->cpu = cpu; 177 dev->cpu = cpu;
178 178
179 dev->state_count = drv->state_count;
180 ret = cpuidle_register_device(dev); 179 ret = cpuidle_register_device(dev);
181 if (ret) { 180 if (ret) {
182 pr_err("CPU%u: CPUidle device registration failed\n", 181 pr_err("CPU%u: CPUidle device registration failed\n",