Skip to content

Commit

Permalink
ARM: OMAP2+: Make GPMC skip disabled devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guido Martínez authored and Tony Lindgren committed Jul 7, 2014
1 parent 526570c commit 68e2eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68e2eb5

Please sign in to comment.