summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-09-10 13:46:24 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-18 15:45:03 +0200
commit1cc44f4354c03d1ebcfa670875478ee1c9368086 (patch)
treebb6f66eaec98f6c53d0db04ec0ab0bfe761055b5
parentc531241dcc010e4457e0eb9401aaeae0a56bf5c6 (diff)
downloadblackbird-op-linux-1cc44f4354c03d1ebcfa670875478ee1c9368086.tar.gz
blackbird-op-linux-1cc44f4354c03d1ebcfa670875478ee1c9368086.zip
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: Samuel Ortiz <sameo@linux.intel.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 5919ee33f2b7..3ffb6f7fb4d8 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -308,6 +308,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;
OpenPOWER on IntegriCloud