Jiang Liu ddec11b145 ia64/PCI: Use hotplug-safe pci_get_domain_bus_and_slot()
Following code has a race window between pci_find_bus() and pci_get_slot()
if PCI hotplug operation happens between them which removes the pci_bus.
So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
which also reduces code complexity.

    struct pci_bus *pci_bus = pci_find_bus(domain, busno);
    struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2012-09-12 14:10:33 -06:00
..
2012-03-28 15:58:21 -07:00
2012-02-22 11:11:06 -08:00
2005-04-16 15:20:36 -07:00
2012-02-22 11:11:06 -08:00
2006-02-02 13:35:59 -08:00
2005-04-16 15:20:36 -07:00
2011-03-17 14:02:56 +01:00
2012-03-28 18:30:02 +01:00
2012-03-28 15:58:21 -07:00