bus: imx-weim: Take the 'status' property value into account
[firefly-linux-kernel-4.4.55.git] / drivers / bus / imx-weim.c
index e98d15eaa7994c7349d1db8df4dd19f684b85ba6..1827fc4d15c1a710103c4daf7a62a6067989422a 100644 (file)
@@ -150,7 +150,7 @@ static int __init weim_parse_dt(struct platform_device *pdev,
                        return ret;
        }
 
-       for_each_child_of_node(pdev->dev.of_node, child) {
+       for_each_available_child_of_node(pdev->dev.of_node, child) {
                if (!child->name)
                        continue;