@@ -154,7 +154,6 @@ struct acpiphp_attention_info
/* slot flags */
#define SLOT_POWEREDON (0x00000001)
-#define SLOT_ENABLED (0x00000002)
#define SLOT_MULTIFUNCTION (0x00000004)
/* function flags */
@@ -304,7 +304,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
if (pci_bus_read_dev_vendor_id(pbus, PCI_DEVFN(device, function),
&val, 60*1000))
- slot->flags |= (SLOT_ENABLED | SLOT_POWEREDON);
+ slot->flags |= SLOT_POWEREDON;
if (is_dock_device(handle)) {
/* we don't want to call this device's _EJ0
@@ -725,18 +725,6 @@ static int __ref enable_device(struct acpiphp_slot *slot)
pci_bus_add_devices(bus);
- slot->flags |= SLOT_ENABLED;
- list_for_each_entry(func, &slot->funcs, sibling) {
- dev = pci_get_slot(bus, PCI_DEVFN(slot->device,
- func->function));
- if (!dev) {
- /* Do not set SLOT_ENABLED flag if some funcs
- are not added. */
- slot->flags &= (~SLOT_ENABLED);
- continue;
- }
- }
-
return 0;
}
@@ -782,8 +770,6 @@ static int disable_device(struct acpiphp_slot *slot)
acpiphp_bus_trim(func->handle);
}
- slot->flags &= (~SLOT_ENABLED);
-
return 0;
}
@@ -1229,8 +1215,6 @@ int acpiphp_enable_slot(struct acpiphp_slot *slot)
goto err_exit;
if (get_slot_status(slot) == ACPI_STA_ALL) {
- if (slot->flags & SLOT_ENABLED)
- goto err_exit;
/* configure all functions */
retval = enable_device(slot);
if (retval)