[PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2

Guennadi Liakhovetski g.liakhovetski at gmx.de
Wed Apr 3 03:28:11 EST 2013


Currently modular V4L2 build with enabled OF is broken dur to the
of_get_next_parent() function being unavailable to modules. Export it to
fix the build.

Cc: Sylwester Nawrocki <s.nawrocki at samsung.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski at gmx.de>
---

This is for 3.10

 drivers/of/base.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 321d3ef..1733081 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -382,6 +382,7 @@ struct device_node *of_get_next_parent(struct device_node *node)
 	raw_spin_unlock_irqrestore(&devtree_lock, flags);
 	return parent;
 }
+EXPORT_SYMBOL(of_get_next_parent);
 
 /**
  *	of_get_next_child - Iterate a node childs
-- 
1.7.2.5



More information about the devicetree-discuss mailing list