summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-09-10 13:46:24 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-22 11:15:03 -0400
commit5382a0171f2069ed259d7a86f19822a1af2488d4 (patch)
tree5aaf4c70c55c14e6b4aef2482fedc04dcf2aa4d0
parent8b59c1a8d91c1c2acba2c9588ee69e40d539a3fc (diff)
downloadlinux-5382a0171f2069ed259d7a86f19822a1af2488d4.tar.bz2
dt: Add empty of_find_node_by_name() function
This commit adds an empty of_find_node_by_name() function for !CONFIG_OF builds. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--include/linux/of.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 1b1163225f3b..5c7a15836996 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -315,6 +315,12 @@ static inline const char* of_node_full_name(struct device_node *np)
return "<no-node>";
}
+static inline struct device_node *of_find_node_by_name(struct device_node *from,
+ const char *name)
+{
+ return NULL;
+}
+
static inline bool of_have_populated_dt(void)
{
return false;