[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH 07/19] backports: add of_node_put()
From: Hauke Mehrtens <hauke () hauke-m ! de>
Date: 2014-06-15 21:21:35
Message-ID: 1402867307-31337-8-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic