diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/pci_of_scan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci_of_scan.c b/arch/powerpc/kernel/pci_of_scan.c index cd11d5ca80df..6ddb795f83e8 100644 --- a/arch/powerpc/kernel/pci_of_scan.c +++ b/arch/powerpc/kernel/pci_of_scan.c | |||
@@ -310,6 +310,8 @@ static void __devinit __of_scan_bus(struct device_node *node, | |||
310 | /* Scan direct children */ | 310 | /* Scan direct children */ |
311 | for_each_child_of_node(node, child) { | 311 | for_each_child_of_node(node, child) { |
312 | pr_debug(" * %s\n", child->full_name); | 312 | pr_debug(" * %s\n", child->full_name); |
313 | if (!of_device_is_available(child)) | ||
314 | continue; | ||
313 | reg = of_get_property(child, "reg", ®len); | 315 | reg = of_get_property(child, "reg", ®len); |
314 | if (reg == NULL || reglen < 20) | 316 | if (reg == NULL || reglen < 20) |
315 | continue; | 317 | continue; |