summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cpuidle-tegra114.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2013-04-03 16:15:18 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-09 00:20:06 +0400
commit0697598db56179dbaa9376f29703f6b94751a73f (patch)
tree4a01fff47bddb9dbfc5290760385d4c841cc5f15 /arch/arm/mach-tegra/cpuidle-tegra114.c
parent14ad7a119b85b0ba77868882194ab5b16203b2c9 (diff)
downloadlinux-0697598db56179dbaa9376f29703f6b94751a73f.tar.xz
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/arm/mach-tegra/cpuidle-tegra114.c')
-rw-r--r--arch/arm/mach-tegra/cpuidle-tegra114.c1
1 files changed, 0 insertions, 1 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)
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",