From: Guido Martínez Date: Wed, 2 Jul 2014 13:35:18 +0000 (-0300) Subject: ARM: OMAP2+: Make GPMC skip disabled devices X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=68e2eb533ef84197d6a60d23f45070cddcf51753;p=linux-beck.git ARM: OMAP2+: Make GPMC skip disabled devices 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 Tested-by: Pekon Gupta Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 2c0c2816900f..8bc13380f0a0 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -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;