diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-05 18:48:26 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-05 18:48:26 -0500 |
commit | d901188f002104905a7845298e1a7dc94189007a (patch) | |
tree | 14bf855f9bb377b67887d21892e0cacc259c6204 | |
parent | 1e3bcb596c6b1cf6db93f8f506e2de260e771bad (diff) | |
parent | b8a62d540240387c7e97a69127cab3ab9cadc70a (diff) |
Merge branch 'acpi-pci-hotplug' into acpi-hotplug
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index a92b8b017901..828acf422c17 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -668,12 +668,9 @@ static void trim_stale_devices(struct pci_dev *dev) | |||
668 | alive = (ACPI_SUCCESS(status) && device_status_valid(sta)) | 668 | alive = (ACPI_SUCCESS(status) && device_status_valid(sta)) |
669 | || acpiphp_no_hotplug(adev); | 669 | || acpiphp_no_hotplug(adev); |
670 | } | 670 | } |
671 | if (!alive) { | 671 | if (!alive) |
672 | u32 v; | 672 | alive = pci_device_is_present(dev); |
673 | 673 | ||
674 | /* Check if the device responds. */ | ||
675 | alive = pci_bus_read_dev_vendor_id(dev->bus, dev->devfn, &v, 0); | ||
676 | } | ||
677 | if (!alive) { | 674 | if (!alive) { |
678 | pci_stop_and_remove_bus_device(dev); | 675 | pci_stop_and_remove_bus_device(dev); |
679 | if (adev) | 676 | if (adev) |