]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: tegra: cpuidle: remove useless initialization
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 3 Apr 2013 12:15:18 +0000 (12:15 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Apr 2013 20:20:06 +0000 (22:20 +0200)
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>
arch/arm/mach-tegra/cpuidle-tegra114.c
arch/arm/mach-tegra/cpuidle-tegra20.c
arch/arm/mach-tegra/cpuidle-tegra30.c

index 0f4e8c483b340342fc6756fb33b8db6c1b0deee5..c527cff47ee05d7c4b8130af5d77f84fb8ead0df 100644 (file)
@@ -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",
index 1ad1a67890eb8205cd85e05f1a040e1998af5c42..b94d76a0e0c07debcc400c8195f4b0fc986b72ca 100644 (file)
@@ -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",
index 8b50cf4ddd6f04819e0c8a69bf4bf7eb9d28ddc5..c4e01fe0fde4619fd9912b4d85ecbd3d5a347d53 100644 (file)
@@ -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",