]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: pci_is_root_bus helper
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Fri, 20 Mar 2009 20:55:55 +0000 (14:55 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 21:56:36 +0000 (14:56 -0700)
commit8ec0616f27eb877180c0e72468d2d5418d6753e8
tree2665c3e34983c8bcaf5fec76480fda163a88b045
parentfbc41b43f04178645e64f35040092a9db5b5808e
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 <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
include/linux/pci.h