ARM: OMAP2+: Make GPMC skip disabled devices
authorGuido Martínez <guido@vanguardiasur.com.ar>
Wed, 2 Jul 2014 13:35:18 +0000 (10:35 -0300)
committerTony Lindgren <tony@atomide.com>
Mon, 7 Jul 2014 11:57:17 +0000 (04:57 -0700)
Currently, child nodes of the gpmc node are iterated and probed
regardless of their 'status' property. This means adding 'status =
"disabled";' has no effect.

This patch changes the iteration to only probe nodes marked as
available.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Tested-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c

index 2c0c2816900ffc3ae1e7b1a75b9db6f559399957..8bc13380f0a06ec14859b8c274883142a14ef968 100644 (file)
@@ -1615,7 +1615,7 @@ static int gpmc_probe_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;