aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/of/base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 715144af3a83..fd4b9c2eaa15 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1996,6 +1996,9 @@ int of_graph_parse_endpoint(const struct device_node *node,
1996{ 1996{
1997 struct device_node *port_node = of_get_parent(node); 1997 struct device_node *port_node = of_get_parent(node);
1998 1998
1999 WARN_ONCE(!port_node, "%s(): endpoint %s has no parent node\n",
2000 __func__, node->full_name);
2001
1999 memset(endpoint, 0, sizeof(*endpoint)); 2002 memset(endpoint, 0, sizeof(*endpoint));
2000 2003
2001 endpoint->local_node = node; 2004 endpoint->local_node = node;