mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
PCI: use pci_is_root_bus() in pci_read_bridge_bases()
Use pci_is_root_bus() in pci_read_bridge_bases() to check if the pci bus is root, for code consistency. Reviewed-by: Alex Chiang <achiang@hp.com> Reviewed-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
6e3f36df0f
commit
9fc3925650
@ -289,7 +289,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
|
||||
struct resource *res;
|
||||
int i;
|
||||
|
||||
if (!child->parent) /* It's a host bus, nothing to read */
|
||||
if (pci_is_root_bus(child)) /* It's a host bus, nothing to read */
|
||||
return;
|
||||
|
||||
if (dev->transparent) {
|
||||
|
Loading…
Reference in New Issue
Block a user