|
@@ -15,7 +15,7 @@ static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
|
|
{
|
|
{
|
|
struct pci_bus *pbus = pdev->bus;
|
|
struct pci_bus *pbus = pdev->bus;
|
|
/* Find a PCI root bus */
|
|
/* Find a PCI root bus */
|
|
- while (pbus->parent)
|
|
|
|
|
|
+ while (!pci_is_root_bus(pbus))
|
|
pbus = pbus->parent;
|
|
pbus = pbus->parent;
|
|
return acpi_get_pci_rootbridge_handle(pci_domain_nr(pbus),
|
|
return acpi_get_pci_rootbridge_handle(pci_domain_nr(pbus),
|
|
pbus->number);
|
|
pbus->number);
|