Skip to content

Commit

Permalink
powerpc/85xx: Don't add disabled PCIe devices
Browse files Browse the repository at this point in the history
PCIe nodes with the property status="disabled" are not usable and so
avoid adding "disabled" PCIe bridge with the system.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Prabhakar Kushwaha authored and Kumar Gala committed Apr 12, 2011
1 parent c60e65d commit ef1fd2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/powerpc/sysdev/fsl_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ int __init fsl_add_bridge(struct device_node *dev, int is_primary)
struct resource rsrc;
const int *bus_range;

if (!of_device_is_available(dev)) {
pr_warning("%s: disabled\n", dev->full_name);
return -ENODEV;
}

pr_debug("Adding PCI host bridge %s\n", dev->full_name);

/* Fetch host bridge registers address */
Expand Down

0 comments on commit ef1fd2d

Please sign in to comment.