summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorShawn Guo2012-02-15 19:47:42 +0100
committerGrant Likely2012-02-15 21:10:15 +0100
commit2261cc627f5453004042b4f694612edae27e492e (patch)
tree6df1900977e5e55f43feb449eabfd9fe28225c99 /include/linux/of.h
parentARM: devicetree: Add .dtb files to arch/arm/boot/.gitignore (diff)
downloadkernel-qcow2-linux-2261cc627f5453004042b4f694612edae27e492e.tar.gz
kernel-qcow2-linux-2261cc627f5453004042b4f694612edae27e492e.tar.xz
kernel-qcow2-linux-2261cc627f5453004042b4f694612edae27e492e.zip
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)