aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-03-02 23:05:31 -0500
committerGrant Likely <grant.likely@secretlab.ca>2012-03-05 10:09:09 -0500
commite7cc3aca0f6a36b018934264ee20bee45dc13e29 (patch)
tree633470a7016f4e7911801b741942dba9689e4ce7 /include
parent280ad7fda5f95211857fda38960f2b6fdf6edd3e (diff)
dt: fix twl4030 for non-dt compile on x86
twl4030 still doesn't build correctly for x86 allmodconfig. This fix solves the missing symbol errors. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Benoit Cousson <b-cousson@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of_platform.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index 242fa3563e2e..b47d2040c9f2 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -94,7 +94,12 @@ extern int of_platform_populate(struct device_node *root,
94 const struct of_device_id *matches, 94 const struct of_device_id *matches,
95 const struct of_dev_auxdata *lookup, 95 const struct of_dev_auxdata *lookup,
96 struct device *parent); 96 struct device *parent);
97#else 97#endif /* CONFIG_OF_ADDRESS */
98
99#endif /* CONFIG_OF_DEVICE */
100
101#if !defined(CONFIG_OF_ADDRESS)
102struct of_dev_auxdata;
98static inline int of_platform_populate(struct device_node *root, 103static inline int of_platform_populate(struct device_node *root,
99 const struct of_device_id *matches, 104 const struct of_device_id *matches,
100 const struct of_dev_auxdata *lookup, 105 const struct of_dev_auxdata *lookup,
@@ -104,6 +109,4 @@ static inline int of_platform_populate(struct device_node *root,
104} 109}
105#endif /* !CONFIG_OF_ADDRESS */ 110#endif /* !CONFIG_OF_ADDRESS */
106 111
107#endif /* CONFIG_OF_DEVICE */
108
109#endif /* _LINUX_OF_PLATFORM_H */ 112#endif /* _LINUX_OF_PLATFORM_H */