ppc/8xxx: Delete PCI nodes from device tree if not configured
authorKumar Gala <galak@kernel.crashing.org>
Tue, 30 Mar 2010 15:07:12 +0000 (10:07 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 7 Apr 2010 05:11:39 +0000 (00:11 -0500)
If the PCI controller wasn't configured or enabled delete from the
device tree (include its alias).

For the case that we didn't even configure u-boot with knowledge of
the controller we can use the fact that the pci_controller pointer
is NULL to delete the node in the device tree.  We determine that
a controller was not setup (because of HW config) based on the fact
that cfg_addr wasn't setup.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

No differences found