of_find_compatible_node() is not defined when CONFIG_OF is not set on kernel < 3.3. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/linux/of.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backport/backport-include/linux/of.h b/backport/backport-include/linux/of.h index 6d0be53..32ccf19 100644 --- a/backport/backport-include/linux/of.h +++ b/backport/backport-include/linux/of.h @@ -120,4 +120,16 @@ static inline void of_node_put(struct device_node *node) { } dn = of_find_compatible_node(dn, type, compatible)) #endif /* for_each_compatible_node */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) +#ifndef CONFIG_OF +static inline struct device_node *of_find_compatible_node( + struct device_node *from, + const char *type, + const char *compat) +{ + return NULL; +} +#endif +#endif + #endif /* _COMPAT_LINUX_OF_H */ -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html