[PATCH] regulator: tps65910: Add missing #include <linux/of.h>

From: Geert Uytterhoeven
Date: Sun Mar 15 2015 - 09:03:59 EST


drivers/regulator/tps65910-regulator.c: In function âtps65910_parse_dt_reg_dataâ:
drivers/regulator/tps65910-regulator.c:1018: error: implicit declaration of function âof_get_child_by_nameâ
drivers/regulator/tps65910-regulator.c:1018: warning: assignment makes pointer from integer without a cast
drivers/regulator/tps65910-regulator.c:1034: error: implicit declaration of function âof_node_putâ
drivers/regulator/tps65910-regulator.c:1056: error: implicit declaration of function âof_property_read_u32â

Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
drivers/regulator/tps65910-regulator.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
index e2cffe01b8072263..fb991ec764235d55 100644
--- a/drivers/regulator/tps65910-regulator.c
+++ b/drivers/regulator/tps65910-regulator.c
@@ -17,6 +17,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
+#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/