From: Nobuhiro Iwamatsu <[email protected]> This commit adds an empty of_device_is_available() function for !CONFIG_OF builds.
Signed-off-by: Nobuhiro Iwamatsu <[email protected]> --- include/linux/of.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 5ebcc5c..0be17ad 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -377,6 +377,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) -- 1.7.10.4 _______________________________________________ devicetree-discuss mailing list [email protected] https://lists.ozlabs.org/listinfo/devicetree-discuss
