Skip to content

Commit

Permalink
dt: fix twl4030 for non-dt compile on x86
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Grant Likely committed Mar 5, 2012
1 parent 280ad7f commit e7cc3ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/twl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>

#include <linux/regulator/machine.h>
Expand Down
9 changes: 6 additions & 3 deletions include/linux/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 */

0 comments on commit e7cc3ac

Please sign in to comment.