drm/gpu: mipi: Remove build error of drm_mipi_dsi.c
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 10 Jul 2014 00:34:52 +0000 (09:34 +0900)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:17:51 +0000 (15:17 +0900)
This patch remove build error of drm_mipi_dsi.c as following log:

  CC      kernel/trace/trace.o
  drivers/gpu/drm/drm_mipi_dsi.c: In function ‘mipi_dsi_device_alloc’:
  drivers/gpu/drm/drm_mipi_dsi.c:78:3: error: implicit declaration of function ‘ERR_PTR’ [-Werror=implicit-function-declaration]
  drivers/gpu/drm/drm_mipi_dsi.c:78:3: warning: return makes pointer from integer without a cast [enabled by default]
  drivers/gpu/drm/drm_mipi_dsi.c: In function ‘of_mipi_dsi_device_add’:
  drivers/gpu/drm/drm_mipi_dsi.c:111:3: warning: return makes pointer from integer without a cast [enabled by default]
  drivers/gpu/drm/drm_mipi_dsi.c:117:3: warning: return makes pointer from integer without a cast [enabled by default]
  drivers/gpu/drm/drm_mipi_dsi.c:121:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration]
  drivers/gpu/drm/drm_mipi_dsi.c:123:4: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration]
  drivers/gpu/drm/drm_mipi_dsi.c:123:4: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat]
  drivers/gpu/drm/drm_mipi_dsi.c:135:3: warning: return makes pointer from integer without a cast [enabled by default]
  cc1: some warnings being treated as errors
  make[3]: *** [drivers/gpu/drm/drm_mipi_dsi.o

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/gpu/drm/drm_mipi_dsi.c

index 09821f4..c3d669d 100644 (file)
@@ -28,6 +28,7 @@
 #include <drm/drm_mipi_dsi.h>
 
 #include <linux/device.h>
+#include <linux/err.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/pm_runtime.h>