mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
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]>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
7ca380f606
commit
130a5f6924
@@ -953,8 +953,6 @@ static int acpi_processor_setup_cpuidle_cx(struct acpi_processor *pr,
|
||||
break;
|
||||
}
|
||||
|
||||
dev->state_count = count;
|
||||
|
||||
if (!count)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user