dt: Add empty of_find_node_by_name() function
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 10 Sep 2012 10:46:24 +0000 (13:46 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 18 Sep 2012 13:45:03 +0000 (15:45 +0200)
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>
include/linux/of.h

index 5919ee33f2b7b2d930fa3f6dd877984be5ed5e0d..3ffb6f7fb4d8fb514d0321858f77f7e3c5bae864 100644 (file)
@@ -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;