From: Jiang Liu Date: Fri, 12 Apr 2013 05:44:15 +0000 (+0000) Subject: PCI: When removing bus, always remove legacy files & unregister X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~143^2~3^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e89d268e7a83d8388d4d09d3f2089ced72cc15f;p=pandora-kernel.git PCI: When removing bus, always remove legacy files & unregister We always call device_register() and pci_create_legacy_files() for a new bus before handing out the "struct pci_bus *". Therefore, there's no possiblity of removing the bus with pci_remove_bus() before those calls have been made, so we don't need to check "bus->is_added" before calling pci_remove_legacy_files() and device_unregister(). [bhelgaas: changelog] Signed-off-by: Jiang Liu Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas Reviewed-by: Yinghai Lu Cc: "Rafael J. Wysocki" Cc: Toshi Kani --- Reading git-diff-tree failed