[PATCH] of: Add stub for of_get_next_parent()

From: Heikki Krogerus
Date: Wed Apr 27 2016 - 07:11:49 EST


Fixes a compiler error:

drivers/phy/phy-core.c: In function â__of_phy_provider_registerâ:
drivers/phy/phy-core.c:848:13: error: implicit declaration of function
âof_get_next_parentâ [-Werror=implicit-function-declaration]
parent = of_get_next_parent(parent);
^

Fixes: 2f7600bc981c ("phy: core: Allow children node to be overridden")
Signed-off-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
---
include/linux/of.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index c7292e8..00ab231 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -468,6 +468,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.8.0.rc3