diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2012-11-30 10:01:51 +0000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-11-30 10:04:06 +0000 |
commit | 465aac6d496aa3e99caaa6868865fb3830f73d80 (patch) | |
tree | 105ef4075b2f2f351aafb6d87ee69d60b3c1e751 /include/linux | |
parent | f3b6159e6a12136ac9c59aaa92ba9f3e484df650 (diff) | |
download | lwn-465aac6d496aa3e99caaa6868865fb3830f73d80.tar.gz lwn-465aac6d496aa3e99caaa6868865fb3830f73d80.zip |
Fix build when CONFIG_W1_MASTER_GPIO=m b exporting "allnodes"
ERROR: "allnodes" [drivers/w1/masters/w1-gpio.ko] undefined!
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
[grant.likely: allnodes is too generic; rename to of_allnodes]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Ville Syrjala <syrjala@sci.fi>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/of.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 7337dc109c89..60053bd7e79a 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -88,14 +88,14 @@ static inline void of_node_put(struct device_node *node) { } #ifdef CONFIG_OF /* Pointer for first entry in chain of all nodes. */ -extern struct device_node *allnodes; +extern struct device_node *of_allnodes; extern struct device_node *of_chosen; extern struct device_node *of_aliases; extern rwlock_t devtree_lock; static inline bool of_have_populated_dt(void) { - return allnodes != NULL; + return of_allnodes != NULL; } static inline bool of_node_is_root(const struct device_node *node) |