[PATCH 1/2] dt: Add empty of_property_match_string() function

Thierry Reding thierry.reding at avionic-design.de
Sat Apr 14 00:23:35 EST 2012


This commit adds an empty of_property_match_string() function for
!CONFIG_OF builds.

Signed-off-by: Thierry Reding <thierry.reding at avionic-design.de>
---
 include/linux/of.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index e3f942d..937ca14 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -361,6 +361,13 @@ static inline int of_property_read_u64(const struct device_node *np,
 	return -ENOSYS;
 }
 
+static inline int of_property_match_string(struct device_node *np,
+					   const char *propname,
+					   const char *string)
+{
+	return -ENOSYS;
+}
+
 static inline struct device_node *of_parse_phandle(struct device_node *np,
 						   const char *phandle_name,
 						   int index)
-- 
1.7.10



More information about the devicetree-discuss mailing list