]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
dt: Add empty of_property_match_string() function
authorThierry Reding <thierry.reding@avionic-design.de>
Fri, 13 Apr 2012 14:18:34 +0000 (16:18 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 15 Jun 2012 10:56:54 +0000 (12:56 +0200)
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>
include/linux/of.h

index 2ec1083af7ffba234db74acdd0e42d25d861b8c1..597e571110a2b5b48b9b4c2e18a9452649e6278e 100644 (file)
@@ -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)