Skip to contentSkip to conversation

regulator: arizona-micsupp: Add missing #include

PATCH Applied Charles Keepax 2 participants 2 messages May 8, 2014

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/regulator/arizona-micsupp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/regulator/arizona-micsupp.c +1 -0
index b80ebbe..ce9aca5 100644
@@ -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>
Signature · 1 line
1.7.2.5
maintainer Applied
#1 lore raw
Quoted 3 lines · Charles Keepax

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.

Applied, thanks.