ACPI / cpuidle: remove dev->state_count setting
authorBartlomiej Zolnierkiewicz <[email protected]>
Fri, 20 Dec 2013 18:47:27 +0000 (19:47 +0100)
committerRafael J. Wysocki <[email protected]>
Sat, 11 Jan 2014 00:26:49 +0000 (01:26 +0100)
commit130a5f692425e6237229598a8624da0a247f33d5
tree825c43b17ed7094c5e569daf3f6ec1f280af3dea
parent7ca380f60626d90cdd17cc60de5e756422e35b2a
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]>
drivers/acpi/processor_idle.c