Skip to content

Commit

Permalink
dt: add empty of_find_compatible_node function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Guo authored and Grant Likely committed Feb 15, 2012
1 parent 810ae3d commit 2261cc6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2261cc6

Please sign in to comment.