Skip to content

Commit e7cc3ac

Browse files
committed
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>
1 parent 280ad7f commit e7cc3ac

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

drivers/mfd/twl-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <linux/of.h>
3939
#include <linux/of_irq.h>
4040
#include <linux/of_platform.h>
41+
#include <linux/irq.h>
4142
#include <linux/irqdomain.h>
4243

4344
#include <linux/regulator/machine.h>

include/linux/of_platform.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ extern int of_platform_populate(struct device_node *root,
9494
const struct of_device_id *matches,
9595
const struct of_dev_auxdata *lookup,
9696
struct device *parent);
97-
#else
97+
#endif /* CONFIG_OF_ADDRESS */
98+
99+
#endif /* CONFIG_OF_DEVICE */
100+
101+
#if !defined(CONFIG_OF_ADDRESS)
102+
struct of_dev_auxdata;
98103
static inline int of_platform_populate(struct device_node *root,
99104
const struct of_device_id *matches,
100105
const struct of_dev_auxdata *lookup,
@@ -104,6 +109,4 @@ static inline int of_platform_populate(struct device_node *root,
104109
}
105110
#endif /* !CONFIG_OF_ADDRESS */
106111

107-
#endif /* CONFIG_OF_DEVICE */
108-
109112
#endif /* _LINUX_OF_PLATFORM_H */

0 commit comments

Comments
 (0)