aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <[email protected]>2013-12-20 18:47:27 +0000
committerRafael J. Wysocki <[email protected]>2014-01-11 00:26:49 +0000
commit130a5f692425e6237229598a8624da0a247f33d5 (patch)
tree825c43b17ed7094c5e569daf3f6ec1f280af3dea /drivers/acpi/processor_idle.c
parentACPI / cpuidle: fix max idle state handling with hotplug CPU support (diff)
downloadkernel-130a5f692425e6237229598a8624da0a247f33d5.tar.gz
kernel-130a5f692425e6237229598a8624da0a247f33d5.zip
ACPI / cpuidle: remove dev->state_count setting
dev->state_count is now always equal to drv->state_count and drv->state_count no longer can change during driver's lifetime so the default dev->state_count initialization in cpuidle_enable_device() (called from cpuidle_register_device()) can be used instead. Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Cc: Len Brown <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 45e3b81d6c29..23c80e1372a9 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -953,8 +953,6 @@ static int acpi_processor_setup_cpuidle_cx(struct acpi_processor *pr,
break;
}
- dev->state_count = count;
-
if (!count)
return -EINVAL;