projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c60e65d
)
powerpc/85xx: Don't add disabled PCIe devices
author
Prabhakar Kushwaha
<prabhakar@freescale.com>
Thu, 31 Mar 2011 07:01:09 +0000
(12:31 +0530)
committer
Kumar Gala
<galak@kernel.crashing.org>
Tue, 12 Apr 2011 11:29:21 +0000
(06:29 -0500)
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>
arch/powerpc/sysdev/fsl_pci.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/fsl_pci.c
b/arch/powerpc/sysdev/fsl_pci.c
index
f8f7f28
..
68ca929
100644
(file)
--- 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 */