PCI: allow pci_alloc_child_bus() to handle a NULL bridge
authorYu Zhao <yu.zhao@intel.com>
Fri, 21 Nov 2008 18:41:07 +0000 (02:41 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:03 +0000 (11:13 -0800)
commit3789fa8a2e534523c896a32a9f27f78d52ad7d82
tree1bed5285a1188bf2455554118616403a8f929637
parent0b400c7ed4d027e02f6231afa39852a2d48e6f25
PCI: allow pci_alloc_child_bus() to handle a NULL bridge

Allow pci_alloc_child_bus() to allocate buses without bridge devices.
Some SR-IOV devices can occupy more than one bus number, but there is no
explicit bridges because that have internal routing mechanism.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c