summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-04-13 16:18:34 +0200
committerThierry Reding <thierry.reding@avionic-design.de>2012-06-15 12:56:54 +0200
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 2ec1083af7f..597e571110a 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,
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)