Skip to content

Commit

Permalink
OF: add empty of_device_is_available for !OF
Browse files Browse the repository at this point in the history
Add an empty version of of_device_is_available.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
  • Loading branch information
Rob Herring committed Apr 11, 2013
1 parent 0583fe4 commit d719569
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ static inline int of_device_is_compatible(const struct device_node *device,
return 0;
}

static inline int of_device_is_available(const struct device_node *device)
{
return 0;
}

static inline struct property *of_find_property(const struct device_node *np,
const char *name,
int *lenp)
Expand Down

0 comments on commit d719569

Please sign in to comment.