From: Bartlomiej Zolnierkiewicz Date: Fri, 20 Dec 2013 18:47:27 +0000 (+0100) Subject: ACPI / cpuidle: remove dev->state_count setting X-Git-Tag: v3.14-rc1~107^2~5^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=130a5f692425e6237229598a8624da0a247f33d5;p=platform%2Fkernel%2Flinux-stable.git 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 Signed-off-by: Kyungmin Park Cc: Len Brown Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 45e3b81..23c80e1 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;