From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Stein Subject: [PATCH v2 1/1] of: Empty of_read_number when !OF Date: Sun, 3 Apr 2016 14:26:05 +0200 Message-ID: <1459686365-19837-1-git-send-email-alexanders83@web.de> Return-path: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rob Herring , Frank Rowand , Grant Likely Cc: Alexander Stein , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Introduce empty of_read_number when CONFIG_OF is not defined. This allows us to compile test gpio drivers. Signed-off-by: Alexander Stein --- Changes in v2: * rebased to current gpio's for-next branch include/linux/of.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 7fcb681baadf..f0564a2f0a98 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -672,6 +672,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag { } +static inline u64 of_read_number(const __be32 *cell, int size) +{ + return 0; +} + #define of_match_ptr(_ptr) NULL #define of_match_node(_matches, _node) NULL #endif /* CONFIG_OF */ -- 2.8.0 -- 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