diff options
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index ee26bac2d378..cd929aed3613 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -494,7 +494,7 @@ static void acpiphp_bus_add(acpi_handle handle) | |||
494 | 494 | ||
495 | acpi_bus_scan(handle); | 495 | acpi_bus_scan(handle); |
496 | acpi_bus_get_device(handle, &adev); | 496 | acpi_bus_get_device(handle, &adev); |
497 | if (adev) | 497 | if (acpi_device_enumerated(adev)) |
498 | acpi_device_set_power(adev, ACPI_STATE_D0); | 498 | acpi_device_set_power(adev, ACPI_STATE_D0); |
499 | } | 499 | } |
500 | 500 | ||