Commit 25e28ef2 authored by Sam Ravnborg's avatar Sam Ravnborg

drm/armada: drop use of drmP.h

Drop use of the deprecated drmP.h header file.
While touching the list of include files group them and sort them.
Fix fallout from the header file removal.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190804094132.29463-4-sam@ravnborg.org
parent eb1df694
...@@ -3,15 +3,19 @@ ...@@ -3,15 +3,19 @@
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
* Rewritten from the dovefb driver, and Armada510 manuals. * Rewritten from the dovefb driver, and Armada510 manuals.
*/ */
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/component.h> #include <linux/component.h>
#include <linux/module.h>
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <drm/drmP.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_vblank.h>
#include "armada_crtc.h" #include "armada_crtc.h"
#include "armada_drm.h" #include "armada_drm.h"
#include "armada_fb.h" #include "armada_fb.h"
......
...@@ -3,11 +3,15 @@ ...@@ -3,11 +3,15 @@
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
* Rewritten from the dovefb driver, and Armada510 manuals. * Rewritten from the dovefb driver, and Armada510 manuals.
*/ */
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/debugfs.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <drm/drmP.h> #include <linux/uaccess.h>
#include <drm/drm_debugfs.h>
#include <drm/drm_file.h>
#include "armada_crtc.h" #include "armada_crtc.h"
#include "armada_drm.h" #include "armada_drm.h"
......
...@@ -8,11 +8,14 @@ ...@@ -8,11 +8,14 @@
#include <linux/kfifo.h> #include <linux/kfifo.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <drm/drmP.h>
#include <drm/drm_device.h>
#include <drm/drm_mm.h>
struct armada_crtc; struct armada_crtc;
struct armada_gem_object; struct armada_gem_object;
struct clk; struct clk;
struct drm_display_mode;
struct drm_fb_helper; struct drm_fb_helper;
static inline void static inline void
......
...@@ -2,14 +2,22 @@ ...@@ -2,14 +2,22 @@
/* /*
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
*/ */
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/component.h> #include <linux/component.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of_graph.h> #include <linux/of_graph.h>
#include <linux/platform_device.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_ioctl.h>
#include <drm/drm_prime.h>
#include <drm/drm_probe_helper.h> #include <drm/drm_probe_helper.h>
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
#include <drm/drm_of.h> #include <drm/drm_of.h>
#include <drm/drm_vblank.h>
#include "armada_crtc.h" #include "armada_crtc.h"
#include "armada_drm.h" #include "armada_drm.h"
#include "armada_gem.h" #include "armada_gem.h"
......
...@@ -2,9 +2,12 @@ ...@@ -2,9 +2,12 @@
/* /*
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
*/ */
#include <drm/drm_modeset_helper.h> #include <drm/drm_modeset_helper.h>
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
#include "armada_drm.h" #include "armada_drm.h"
#include "armada_fb.h" #include "armada_fb.h"
#include "armada_gem.h" #include "armada_gem.h"
......
...@@ -3,11 +3,14 @@ ...@@ -3,11 +3,14 @@
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
* Written from the i915 driver. * Written from the i915 driver.
*/ */
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
#include <drm/drm_fourcc.h>
#include "armada_crtc.h" #include "armada_crtc.h"
#include "armada_drm.h" #include "armada_drm.h"
#include "armada_fb.h" #include "armada_fb.h"
......
...@@ -2,12 +2,17 @@ ...@@ -2,12 +2,17 @@
/* /*
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
*/ */
#include <linux/dma-buf.h> #include <linux/dma-buf.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/mman.h>
#include <linux/shmem_fs.h> #include <linux/shmem_fs.h>
#include <drm/armada_drm.h>
#include <drm/drm_prime.h>
#include "armada_drm.h" #include "armada_drm.h"
#include "armada_gem.h" #include "armada_gem.h"
#include <drm/armada_drm.h>
#include "armada_ioctlP.h" #include "armada_ioctlP.h"
static vm_fault_t armada_gem_vm_fault(struct vm_fault *vmf) static vm_fault_t armada_gem_vm_fault(struct vm_fault *vmf)
......
...@@ -3,12 +3,14 @@ ...@@ -3,12 +3,14 @@
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
* Rewritten from the dovefb driver, and Armada510 manuals. * Rewritten from the dovefb driver, and Armada510 manuals.
*/ */
#include <drm/drmP.h>
#include <drm/armada_drm.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_uapi.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_atomic_uapi.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_plane_helper.h> #include <drm/drm_plane_helper.h>
#include <drm/armada_drm.h>
#include "armada_crtc.h" #include "armada_crtc.h"
#include "armada_drm.h" #include "armada_drm.h"
#include "armada_fb.h" #include "armada_fb.h"
......
...@@ -3,10 +3,12 @@ ...@@ -3,10 +3,12 @@
* Copyright (C) 2012 Russell King * Copyright (C) 2012 Russell King
* Rewritten from the dovefb driver, and Armada510 manuals. * Rewritten from the dovefb driver, and Armada510 manuals.
*/ */
#include <drm/drmP.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_plane_helper.h> #include <drm/drm_plane_helper.h>
#include "armada_crtc.h" #include "armada_crtc.h"
#include "armada_drm.h" #include "armada_drm.h"
#include "armada_fb.h" #include "armada_fb.h"
......
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
#define ARMADA_TRACE_H #define ARMADA_TRACE_H
#include <linux/tracepoint.h> #include <linux/tracepoint.h>
#include <drm/drmP.h>
struct drm_crtc;
struct drm_framebuffer;
struct drm_plane;
#undef TRACE_SYSTEM #undef TRACE_SYSTEM
#define TRACE_SYSTEM armada #define TRACE_SYSTEM armada
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment