summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-06-08 22:52:18 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2014-06-16 20:23:38 +0200
commit59de821df9ea030d6cd878aab371b7429ddee05f (patch)
tree6650107546328acae0c82d3730c9727903f7a53d /backport
parent6e1b080e83f1537d8d198917180d0a8bdfd7e0c9 (diff)
backports: add of_node_put()
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport')
-rw-r--r--backport/backport-include/linux/of.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/backport/backport-include/linux/of.h b/backport/backport-include/linux/of.h
index c1ce91c5..69664de7 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 */