Signed-off-by: Hauke Mehrtens <[email protected]>
---
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 c1ce91c..69664de 100644
--- a/backport/backport-include/linux/of.h
+++ b/backport/backport-include/linux/of.h
@@ -94,4 +94,16 @@ static inline int of_property_count_u32_elems(const struct
device_node *np,
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
+#ifndef CONFIG_OF
+#define of_node_get LINUX_BACKPORT(of_node_get)
+/* Dummy ref counting routines - to be implemented later */
+static inline struct device_node *of_node_get(struct device_node *node)
+{
+ return node;
+}
+static inline void of_node_put(struct device_node *node) { }
+#endif /* CONFIG_OF */
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) */
+
#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