aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-04-13 10:18:34 -0400
committerThierry Reding <thierry.reding@avionic-design.de>2012-06-15 06:56:54 -0400
commitbd3d5500f0c41a30149cb184362716096a17bc75 (patch)
tree93028d692071c3f1489bff94945f0ffe6f20d963 /include/linux/of.h
parent8138d2ddbcca2a100482dac390133f83c5a60f94 (diff)
dt: Add empty of_property_match_string() function
This commit adds an empty of_property_match_string() function for !CONFIG_OF builds. Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 2ec1083af7ff..597e571110a2 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -377,6 +377,13 @@ static inline int of_property_read_u64(const struct device_node *np,
377 return -ENOSYS; 377 return -ENOSYS;
378} 378}
379 379
380static inline int of_property_match_string(struct device_node *np,
381 const char *propname,
382 const char *string)
383{
384 return -ENOSYS;
385}
386
380static inline struct device_node *of_parse_phandle(struct device_node *np, 387static inline struct device_node *of_parse_phandle(struct device_node *np,
381 const char *phandle_name, 388 const char *phandle_name,
382 int index) 389 int index)