drm/cirrus: fix include notation and remove -Iinclude/drm flag
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 24 Apr 2017 04:50:25 +0000 (13:50 +0900)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 16 May 2017 15:18:56 +0000 (17:18 +0200)
Include <drm/*.h> instead of relative path from include/drm, then
remove the -Iinclude/drm compiler flag.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1493009447-31524-8-git-send-email-yamada.masahiro@socionext.com
drivers/gpu/drm/cirrus/Makefile
drivers/gpu/drm/cirrus/cirrus_ttm.c

index 69ffe7006d55ed045c0d82a8e88c7edde989dcda..919c0a336c977757c2915ad45a20d887e3d9a004 100644 (file)
@@ -1,4 +1,3 @@
-ccflags-y := -Iinclude/drm
 cirrus-y  := cirrus_main.o cirrus_mode.o \
        cirrus_drv.o cirrus_fbdev.o cirrus_ttm.o
 
index 93dbcd38355d9c2e89f5489e38e63f3d849e5204..1ff1838c0d44fc37cbac9c81568179f072fd3fe7 100644 (file)
@@ -26,8 +26,9 @@
  * Authors: Dave Airlie <airlied@redhat.com>
  */
 #include <drm/drmP.h>
+#include <drm/ttm/ttm_page_alloc.h>
+
 #include "cirrus_drv.h"
-#include <ttm/ttm_page_alloc.h>
 
 static inline struct cirrus_device *
 cirrus_bdev(struct ttm_bo_device *bd)