summaryrefslogtreecommitdiff
path: root/include/linux/of_platform.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-03-03 08:05:31 +0400
committerGrant Likely <grant.likely@secretlab.ca>2012-03-05 19:09:09 +0400
commite7cc3aca0f6a36b018934264ee20bee45dc13e29 (patch)
tree633470a7016f4e7911801b741942dba9689e4ce7 /include/linux/of_platform.h
parent280ad7fda5f95211857fda38960f2b6fdf6edd3e (diff)
downloadlinux-e7cc3aca0f6a36b018934264ee20bee45dc13e29.tar.xz
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/linux/of_platform.h')
-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,
const struct of_device_id *matches,
const struct of_dev_auxdata *lookup,
struct device *parent);
-#else
+#endif /* CONFIG_OF_ADDRESS */
+
+#endif /* CONFIG_OF_DEVICE */
+
+#if !defined(CONFIG_OF_ADDRESS)
+struct of_dev_auxdata;
static inline int of_platform_populate(struct device_node *root,
const struct of_device_id *matches,
const struct of_dev_auxdata *lookup,
@@ -104,6 +109,4 @@ static inline int of_platform_populate(struct device_node *root,
}
#endif /* !CONFIG_OF_ADDRESS */
-#endif /* CONFIG_OF_DEVICE */
-
#endif /* _LINUX_OF_PLATFORM_H */