Преглед на файлове

dt: add empty of_find_compatible_node function

Add empty of_find_compatible_node function for !CONFIG_OF build.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Shawn Guo преди 13 години
родител
ревизия
2261cc627f
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      include/linux/of.h

+ 8 - 0
include/linux/of.h

@@ -281,6 +281,14 @@ static inline struct property *of_find_property(const struct device_node *np,
 	return NULL;
 	return NULL;
 }
 }
 
 
+static inline struct device_node *of_find_compatible_node(
+						struct device_node *from,
+						const char *type,
+						const char *compat)
+{
+	return NULL;
+}
+
 static inline int of_property_read_u32_array(const struct device_node *np,
 static inline int of_property_read_u32_array(const struct device_node *np,
 					     const char *propname,
 					     const char *propname,
 					     u32 *out_values, size_t sz)
 					     u32 *out_values, size_t sz)