[PATCH 13/15] of: Add nop implementation of of_get_next_parent()

Sakari Ailus
2017-01-27T16:11:27Z

To avoid #ifdefs where the function is used.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
include/linux/of.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index 16b2054..e0ddb22 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -585,6 +585,12 @@ static inline struct device_node *of_get_parent(const struct device_node *node)
return NULL;
}

+static inline struct device_node *of_get_next_parent(
+ const struct device_node *node)
+{
+ return NULL;
+}
+
static inline struct device_node *of_get_next_child(
const struct device_node *node, struct device_node *prev)
{
--
2.7.4