[PATCH -next] of: export "allnodes" to fixx w1-gpio.c modular build

From
Randy Dunlap <rdunlap@infradead.org>
Date
2012-11-29 23:43:26
Also in
linux-devicetree, lkml
Reply to
Stephen Rothwell, 2012-11-29
From: Randy Dunlap <rdunlap@infradead.org>

Fix build when CONFIG_W1_MASTER_GPIO=m by exporting "allnodes".

ERROR: "allnodes" [drivers/w1/masters/w1-gpio.ko] undefined!

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Ville Syrjala <syrjala@sci.fi>
---
 drivers/of/base.c |    1 +
 1 file changed, 1 insertion(+)
--- linux-next-20121129.orig/drivers/of/base.c
+++ linux-next-20121129/drivers/of/base.c
@@ -46,6 +46,7 @@ struct alias_prop {
 static LIST_HEAD(aliases_lookup);
 
 struct device_node *allnodes;
+EXPORT_SYMBOL(allnodes);
 struct device_node *of_chosen;
 struct device_node *of_aliases;
 
Thread (15 messages) 15 messages, 8 authors, last reply 2012-11-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help