ARM: tegra: loki: fix build error due to warning
Laxman Dewangan [Thu, 19 Sep 2013 07:47:53 +0000 (12:47 +0530)]
Fix following build error:
****
board-loki-sensors.c: In function 'loki_mt9m114_power_on':
board-loki-sensors.c:118:2: error: implicit declaration of function 'regulator_enable' [-Werror=implicit-function-declaration]
board-loki-sensors.c:135:2: error: implicit declaration of function 'regulator_disable' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
****

Change-Id: I4a624522031d1f9a6af2f1421320cda6789544c1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/276580

arch/arm/mach-tegra/board-loki-sensors.c

index 5b4b2af..b5e0f1f 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/therm_est.h>
 #include <linux/iio/light/jsa1127.h>
 #include <linux/platform_device.h>
+#include <linux/regulator/consumer.h>
 
 #include "board.h"
 #include "board-common.h"