/* acpi_enable_wakeup_device_prep - prepare wakeup devices @sleep_state: ACPI state Enable all wakup devices power if the devices' wakeup level is higher than requested sleep level  */
void acpi_enable_wakeup_device_prep(u8 sleep_state)
/* acpi_enable_wakeup_device_prep - prepare wakeup devices @sleep_state: ACPI state Enable all wakup devices power if the devices' wakeup level is higher than requested sleep level  */
void acpi_enable_wakeup_device_prep(u8 sleep_state)
{
	struct list_head *node, *next;
	list_for_each_safe(node, next, &acpi_wakeup_device_list) {
		struct acpi_device *dev = container_of(node,
						       struct acpi_device,
						       wakeup_list);
		if (!dev->wakeup.flags.valid ||
		    !dev->wakeup.state.enabled ||
		    (sleep_state > (u32) dev->wakeup.sleep_state))
			continue;
		acpi_enable_wakeup_device_power(dev, sleep_state);
	}
}