Skip to content

Commit

Permalink
dt: Add empty of_find_node_by_name() function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Ujfalusi authored and Samuel Ortiz committed Sep 18, 2012
1 parent c531241 commit 1cc44f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1cc44f4

Please sign in to comment.