Signed-off-by: Hauke Mehrtens <[email protected]>
---
backport/backport-include/linux/of.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/backport/backport-include/linux/of.h
b/backport/backport-include/linux/of.h
index 69664de..f2a8ab4 100644
--- a/backport/backport-include/linux/of.h
+++ b/backport/backport-include/linux/of.h
@@ -106,4 +106,12 @@ static inline void of_node_put(struct device_node *node) {
}
#endif /* CONFIG_OF */
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) */
+#ifndef of_match_ptr
+#ifdef CONFIG_OF
+#define of_match_ptr(_ptr) (_ptr)
+#else
+#define of_match_ptr(_ptr) NULL
+#endif /* CONFIG_OF */
+#endif /* of_match_ptr */
+
#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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html