lkml.org 
[lkml]   [2015]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] of: add stub for for_each_property_of_node()
Date
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


\
 
 \ /
  Last update: 2015-07-01 10:21    [W:0.028 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site