diff options
author | Tyrel Datwyler <tyreld@linux.vnet.ibm.com> | 2014-07-29 13:48:13 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-05 15:40:58 +1000 |
commit | 7340056567e32b2c9d3554eb146e1977c93da116 (patch) | |
tree | 490fd87f77d28b50fd9b643c66bcfcab77f83195 /arch/powerpc/boot/io.h | |
parent | a32305bf90a2ae0e6a9a93370c7616565f75e15a (diff) | |
download | linux-7340056567e32b2c9d3554eb146e1977c93da116.tar.gz linux-7340056567e32b2c9d3554eb146e1977c93da116.tar.bz2 linux-7340056567e32b2c9d3554eb146e1977c93da116.zip |
powerpc/pci: Reorder pci bus/bridge unregistration during PHB removal
Commit bcdde7e made __sysfs_remove_dir() recursive and introduced a BUG_ON
during PHB removal while attempting to delete the power managment attribute
group of the bus. This is a result of tearing the bridge and bus devices down
out of order in remove_phb_dynamic. Since, the the bus resides below the bridge
in the sysfs device tree it should be torn down first.
This patch simply moves the device_unregister call for the PHB bridge device
after the device_unregister call for the PHB bus.
Fixes: bcdde7e221a8 ("sysfs: make __sysfs_remove_dir() recursive")
Cc: stable@vger.kernel.org
Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/io.h')
0 files changed, 0 insertions, 0 deletions