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

Signed-off-by: Thierry Reding <[email protected]>
---
 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

_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to