Commit d901188f authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

Merge branch 'acpi-pci-hotplug' into acpi-hotplug

parents 1e3bcb59 b8a62d54
...@@ -668,12 +668,9 @@ static void trim_stale_devices(struct pci_dev *dev) ...@@ -668,12 +668,9 @@ static void trim_stale_devices(struct pci_dev *dev)
alive = (ACPI_SUCCESS(status) && device_status_valid(sta)) alive = (ACPI_SUCCESS(status) && device_status_valid(sta))
|| acpiphp_no_hotplug(adev); || acpiphp_no_hotplug(adev);
} }
if (!alive) { if (!alive)
u32 v; alive = pci_device_is_present(dev);
/* Check if the device responds. */
alive = pci_bus_read_dev_vendor_id(dev->bus, dev->devfn, &v, 0);
}
if (!alive) { if (!alive) {
pci_stop_and_remove_bus_device(dev); pci_stop_and_remove_bus_device(dev);
if (adev) if (adev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment