Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68e2eb53 authored by Guido Martínez's avatar Guido Martínez Committed by Tony Lindgren
Browse files

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: default avatarGuido Martínez <guido@vanguardiasur.com.ar>
Tested-by: default avatarPekon Gupta <pekon@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 526570cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;