ARM: exynos: Remove build error of sec-reboot.c
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 10 Jul 2014 00:33:16 +0000 (09:33 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:15 +0000 (12:00 +0900)
This patch remove build error of sec-reboot.c as following log:

  CC      arch/arm/mach-exynos/sec-reboot.o
  arch/arm/mach-exynos/sec-reboot.c: In function ‘sec_power_off’:
  arch/arm/mach-exynos/sec-reboot.c:72:3: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration]
  arch/arm/mach-exynos/sec-reboot.c: In function ‘sec_reboot_parse_dt’:
  arch/arm/mach-exynos/sec-reboot.c:210:3: error: implicit declaration of function ‘ERR_PTR’ [-Werror=implicit-function-declaration]
  arch/arm/mach-exynos/sec-reboot.c:210:3: warning: return makes pointer from integer without a cast [enabled by default]
  cc1: some warnings being treated as errors

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
arch/arm/mach-exynos/sec-reboot.c

index b53e9b7..818b46e 100644 (file)
@@ -1,4 +1,5 @@
 #include <linux/delay.h>
+#include <linux/err.h>
 #include <linux/pm.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>