Message ID | 4A1B94BD.9040506@jp.fujitsu.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Jesse Barnes |
Headers | show |
Index: 20090526/include/linux/pci-acpi.h =================================================================== --- 20090526.orig/include/linux/pci-acpi.h +++ 20090526/include/linux/pci-acpi.h @@ -15,7 +15,7 @@ static inline acpi_handle acpi_find_root { struct pci_bus *pbus = pdev->bus; /* Find a PCI root bus */ - while (pbus->parent) + while (!pci_is_root_bus(pbus)) pbus = pbus->parent; return acpi_get_pci_rootbridge_handle(pci_domain_nr(pbus), pbus->number);
Use pci_is_root_bus() in acpi_find_root_bridge_handle() to check if the pci bus is root, for code consistency. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> --- include/linux/pci-acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html