regulator: arizona-micsupp: Add missing #include
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 8 May 2014 16:17:38 +0000 (17:17 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 8 May 2014 17:16:51 +0000 (18:16 +0100)
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>
drivers/regulator/arizona-micsupp.c

index b80ebbe88bac558edcdebf94fc976fbbea192a60..ce9aca5f8ee73b5c114b28f41a464d9279c191b9 100644 (file)
@@ -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>
This page took 0.026927 seconds and 5 git commands to generate.