PCI: register and active bridge device before proceeding to scan
The bridge device needs to be registered and activated before
the scanning can proceed, as the bridge is the parent for other
devices.

This fixes a NULL ptr derefernce when scanning PCI hierarchies
with bridges behind bridges.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 92207cd commit 2a8bc957a7e211731b35fc9c96cc9e46558424ba
@Lucas Stach Lucas Stach authored on 29 Apr 2015
Sascha Hauer committed on 1 May 2015
Showing 1 changed file
View
drivers/pci/pci.c