|
@@ -310,6 +310,8 @@ static void __devinit __of_scan_bus(struct device_node *node,
|
|
|
/* Scan direct children */
|
|
|
for_each_child_of_node(node, child) {
|
|
|
pr_debug(" * %s\n", child->full_name);
|
|
|
+ if (!of_device_is_available(child))
|
|
|
+ continue;
|
|
|
reg = of_get_property(child, "reg", ®len);
|
|
|
if (reg == NULL || reglen < 20)
|
|
|
continue;
|