diff options
-rw-r--r-- | drivers/mfd/twl-core.c | 1 | ||||
-rw-r--r-- | include/linux/of_platform.h | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 4970d43952db..54727ef005d6 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/of.h> | 38 | #include <linux/of.h> |
39 | #include <linux/of_irq.h> | 39 | #include <linux/of_irq.h> |
40 | #include <linux/of_platform.h> | 40 | #include <linux/of_platform.h> |
41 | #include <linux/irq.h> | ||
41 | #include <linux/irqdomain.h> | 42 | #include <linux/irqdomain.h> |
42 | 43 | ||
43 | #include <linux/regulator/machine.h> | 44 | #include <linux/regulator/machine.h> |
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) | ||
102 | struct of_dev_auxdata; | ||
98 | static inline int of_platform_populate(struct device_node *root, | 103 | static 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 */ |