Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1175072 > unrolled thread

[PATCH] of: add stub for for_each_property_of_node()

Started byTomeu Vizoso <tomeu.vizoso@collabora.com>
First post2015-07-01 10:20 +0200
Last post2015-07-01 10:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] of: add stub for for_each_property_of_node() Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2015-07-01 10:20 +0200

#1175072 — [PATCH] of: add stub for for_each_property_of_node()

FromTomeu Vizoso <tomeu.vizoso@collabora.com>
Date2015-07-01 10:20 +0200
Subject[PATCH] of: add stub for for_each_property_of_node()
Message-ID<pHlpo-2DQ-1@gated-at.bofh.it>
So code that isn't protected by CONFIG_OF can still build.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---
 include/linux/of.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index edc068d..8922448 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -673,6 +673,9 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag
 
 #define of_match_ptr(_ptr)	NULL
 #define of_match_node(_matches, _node)	NULL
+#define for_each_property_of_node(dn, pp)	\
+	for (; NULL; )
+
 #endif /* CONFIG_OF */
 
 #if defined(CONFIG_OF) && defined(CONFIG_NUMA)
-- 
2.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web