From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomeu Vizoso Subject: [PATCH] of: add stub for for_each_property_of_node() Date: Wed, 1 Jul 2015 10:10:08 +0200 Message-ID: <1435738208-3740-1-git-send-email-tomeu.vizoso@collabora.com> Return-path: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Tomeu Vizoso , Grant Likely , Rob Herring , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org So code that isn't protected by CONFIG_OF can still build. Signed-off-by: Tomeu Vizoso --- 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 devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html