summaryrefslogtreecommitdiff
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-02-15 22:47:42 +0400
committerGrant Likely <grant.likely@secretlab.ca>2012-02-16 00:10:15 +0400
commit2261cc627f5453004042b4f694612edae27e492e (patch)
tree6df1900977e5e55f43feb449eabfd9fe28225c99 /include/linux/of.h
parent810ae3d26507e61d1f7a69e9716443df1ce41449 (diff)
downloadlinux-2261cc627f5453004042b4f694612edae27e492e.tar.xz
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>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index a75a831e2057..92cf6ad35e0e 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -281,6 +281,14 @@ static inline struct property *of_find_property(const struct device_node *np,
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,
const char *propname,
u32 *out_values, size_t sz)