diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-03-20 17:56:18 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-04-11 16:11:16 -0400 |
commit | d71956960c9dafaafeb19ea010c234abe9d25f10 (patch) | |
tree | de84b83ed09fc484b39492669d05dfc248091c0a | |
parent | 0583fe478a7d93be2c814b7e50d6e81c287edfe8 (diff) |
OF: add empty of_device_is_available for !OF
Add an empty version of of_device_is_available.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
-rw-r--r-- | include/linux/of.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index a0f129284948..95c8583688bd 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -379,6 +379,11 @@ static inline int of_device_is_compatible(const struct device_node *device, | |||
379 | return 0; | 379 | return 0; |
380 | } | 380 | } |
381 | 381 | ||
382 | static inline int of_device_is_available(const struct device_node *device) | ||
383 | { | ||
384 | return 0; | ||
385 | } | ||
386 | |||
382 | static inline struct property *of_find_property(const struct device_node *np, | 387 | static inline struct property *of_find_property(const struct device_node *np, |
383 | const char *name, | 388 | const char *name, |
384 | int *lenp) | 389 | int *lenp) |