summaryrefslogtreecommitdiff
path: root/drivers/regulator/arizona-micsupp.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2014-05-08 20:17:38 +0400
committerMark Brown <broonie@linaro.org>2014-05-08 21:16:51 +0400
commit6f1c9c57b4e0783acca9c0fe53850f24d30785a3 (patch)
tree06ccc32ea343df226beebccc5de2a6381d47c4fd /drivers/regulator/arizona-micsupp.c
parent2cce4be9e6b885c595816c45a80bcce95dae6d30 (diff)
downloadlinux-6f1c9c57b4e0783acca9c0fe53850f24d30785a3.tar.xz
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>
Diffstat (limited to 'drivers/regulator/arizona-micsupp.c')
-rw-r--r--drivers/regulator/arizona-micsupp.c1
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 @@
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/err.h>
+#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>