[alsa-devel] [PATCH] base: export symbol of_phandle_iterator_init/next

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Mar 28 04:30:50 CEST 2017


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

of_for_each_phandle() uses of_phandle_iterator_init/next
but these aren't exported. So kernel module complile will say

ERROR: "of_phandle_iterator_init" [xxx.ko] undefined!
ERROR: "of_phandle_iterator_next" [xxx.ko] undefined!

This patch solves this issue

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
This patch is related to this patch-set
	Subject: [PATCH v5 0/9] ASoC: add OF-graph base simple-card
	Date: Tue, 21 Mar 2017 14:17:03 +0900

 drivers/of/base.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 812edb9..bc42f91 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1570,6 +1570,7 @@ int of_phandle_iterator_init(struct of_phandle_iterator *it,
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(of_phandle_iterator_init);
 
 int of_phandle_iterator_next(struct of_phandle_iterator *it)
 {
@@ -1639,6 +1640,7 @@ int of_phandle_iterator_next(struct of_phandle_iterator *it)
 
 	return -EINVAL;
 }
+EXPORT_SYMBOL_GPL(of_phandle_iterator_next);
 
 int of_phandle_iterator_args(struct of_phandle_iterator *it,
 			     uint32_t *args,
-- 
1.9.1



More information about the Alsa-devel mailing list