PCI hotplug: acpiphp: set current_state to D0 in register_slot
[pandora-kernel.git] / drivers / pci / hotplug / acpiphp_glue.c
index cb23aa2..e610cfe 100644 (file)
@@ -212,6 +212,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
 
        pdev = pci_get_slot(pbus, PCI_DEVFN(device, function));
        if (pdev) {
+               pdev->current_state = PCI_D0;
                slot->flags |= (SLOT_ENABLED | SLOT_POWEREDON);
                pci_dev_put(pdev);
        }