linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: mach-omap2: gpmc: ignore non-available nodes
@ 2014-06-26 15:02 Guido Martínez
  2014-06-26 16:37 ` Ezequiel García
  0 siblings, 1 reply; 5+ messages in thread
From: Guido Martínez @ 2014-06-26 15:02 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 arch/arm/mach-omap2/gpmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 2c0c281..8bc1338 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;
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-07 10:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-26 15:02 [PATCH] arm: mach-omap2: gpmc: ignore non-available nodes Guido Martínez
2014-06-26 16:37 ` Ezequiel García
2014-07-02  5:33   ` Gupta, Pekon
2014-07-02 13:35     ` [PATCH v2] ARM: OMAP2+: Make GPMC skip disabled devices Guido Martínez
2014-07-07 10:51       ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).