diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2014-05-08 12:17:38 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-08 13:16:51 -0400 |
commit | 6f1c9c57b4e0783acca9c0fe53850f24d30785a3 (patch) | |
tree | 06ccc32ea343df226beebccc5de2a6381d47c4fd | |
parent | 2cce4be9e6b885c595816c45a80bcce95dae6d30 (diff) |
regulator: arizona-micsupp: Add missing #include
of.h is presently being included through asm-generic/gpio.h so will not
be included on some architectures, causing implicit declaration errors
for of_get_child_by_name, of_parse_phandle and of_node_put.
This patch adds the direct include that should be there.
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/regulator/arizona-micsupp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c index b80ebbe88bac..ce9aca5f8ee7 100644 --- a/drivers/regulator/arizona-micsupp.c +++ b/drivers/regulator/arizona-micsupp.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/bitops.h> | 17 | #include <linux/bitops.h> |
18 | #include <linux/err.h> | 18 | #include <linux/err.h> |
19 | #include <linux/of.h> | ||
19 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
20 | #include <linux/regulator/driver.h> | 21 | #include <linux/regulator/driver.h> |
21 | #include <linux/regulator/machine.h> | 22 | #include <linux/regulator/machine.h> |