aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2011-03-31 12:31:09 +0530
committerKumar Gala <galak@kernel.crashing.org>2011-04-12 06:29:21 -0500
commitef1fd2df85f5ea8ca8876a45d0ebb152d3a144d1 (patch)
treee1ec986e08525252379e3305f59b3d7adc6d89fb /arch/powerpc/sysdev
parentc60e65d7863620945d498a8ac60181077879599c (diff)
downloadkernel_samsung_crespo-ef1fd2df85f5ea8ca8876a45d0ebb152d3a144d1.zip
kernel_samsung_crespo-ef1fd2df85f5ea8ca8876a45d0ebb152d3a144d1.tar.gz
kernel_samsung_crespo-ef1fd2df85f5ea8ca8876a45d0ebb152d3a144d1.tar.bz2
powerpc/85xx: Don't add disabled PCIe devices
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>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index f8f7f28..68ca929 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -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 */