PCI: check if a bus is added when removing it
authorYu Zhao <yu.zhao@intel.com>
Wed, 28 Jan 2009 10:27:21 +0000 (18:27 +0800)
committerJesse Barnes <jbarnes@hobbes.lan>
Fri, 20 Mar 2009 02:29:26 +0000 (19:29 -0700)
commit2b56313448bb8efad3af19f211d988c8352ac04d
tree6142ea40139dc49348111b688c349e133a1fe667
parent11df1f05514beaf0269484191007dbc8d47e0e6f
PCI: check if a bus is added when removing it

When removing a bus, 'is_added' should be checked to make sure the
bus has been successfully added by pci_bus_add_child() who will sets
'is_added'.

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