diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2012-04-13 10:18:34 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-06-15 06:56:54 -0400 |
commit | bd3d5500f0c41a30149cb184362716096a17bc75 (patch) | |
tree | 93028d692071c3f1489bff94945f0ffe6f20d963 /include/linux/of.h | |
parent | 8138d2ddbcca2a100482dac390133f83c5a60f94 (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.h | 7 |
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 | ||
380 | static inline int of_property_match_string(struct device_node *np, | ||
381 | const char *propname, | ||
382 | const char *string) | ||
383 | { | ||
384 | return -ENOSYS; | ||
385 | } | ||
386 | |||
380 | static inline struct device_node *of_parse_phandle(struct device_node *np, | 387 | static 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) |