PCI: pci_is_root_bus helper
authorKenji Kaneshige <[email protected]>
Fri, 20 Mar 2009 20:55:55 +0000 (14:55 -0600)
committerJesse Barnes <[email protected]>
Fri, 20 Mar 2009 21:56:36 +0000 (14:56 -0700)
commit79af72d716cf1bb13b175429cf181a6c4d063ee8
tree2665c3e34983c8bcaf5fec76480fda163a88b045
parent068258bc15439c11a966e873f931cc8e513dca61
PCI: pci_is_root_bus helper

Introduce pci_is_root_bus helper function. This will help make code
more consistent, as well as prevent incorrect assumptions (such as
pci_bus->self == NULL on a root bus, which is not always true).

Signed-off-by: Kenji Kaneshige <[email protected]>
Signed-off-by: Alex Chiang <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
include/linux/pci.h