projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84845c0
)
PCI: use pci_is_root_bus() in acpi_find_root_bridge_handle()
author
Kenji Kaneshige
<
[email protected]
>
Tue, 26 May 2009 07:05:33 +0000
(16:05 +0900)
committer
Jesse Barnes
<
[email protected]
>
Tue, 16 Jun 2009 21:29:30 +0000
(14:29 -0700)
Use pci_is_root_bus() in acpi_find_root_bridge_handle() to check if
the pci bus is root, for code consistency.
Reviewed-by: Alex Chiang <
[email protected]
>
Reviewed-by: Grant Grundler <
[email protected]
>
Signed-off-by: Kenji Kaneshige <
[email protected]
>
Signed-off-by: Jesse Barnes <
[email protected]
>
include/linux/pci-acpi.h
patch
|
blob
|
history
diff --git
a/include/linux/pci-acpi.h
b/include/linux/pci-acpi.h
index df67c78dfe243700458728f744b8f36a1d60188d..93a7c08f869d4fcc7017862505156fdd21e24433 100644
(file)
--- a/
include/linux/pci-acpi.h
+++ b/
include/linux/pci-acpi.h
@@
-15,7
+15,7
@@
static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
{
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);