Skip to content

Commit fe1f664

Browse files
sravnborgdanvet
authored andcommitted
drm/arc: do not rely on drmP.h from drm_gem_cma_helper.h
drmP.h was the only header file in the past and a lot of files rely on that drmP.h defines everything. The goal is to one day to delete drmP.h and as a step towards this it will no longer be included in the headers files in include/drm/ To prepare arc/ for this add dependencies that othwewise was pulled in by drmP.h from drm_gem_cma_helper.h Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: Noralf Trønnes <noralf@tronnes.org> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: David Airlie <airlied@linux.ie> [danvet: Fix typo in commit message.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20190108192939.15255-10-sam@ravnborg.org
1 parent 19126bd commit fe1f664

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎drivers/gpu/drm/arc/arcpgu_crtc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616

1717
#include <drm/drm_atomic_helper.h>
1818
#include <drm/drm_crtc_helper.h>
19+
#include <drm/drm_device.h>
1920
#include <drm/drm_fb_cma_helper.h>
2021
#include <drm/drm_gem_cma_helper.h>
22+
#include <drm/drm_vblank.h>
2123
#include <drm/drm_plane_helper.h>
2224
#include <linux/clk.h>
2325
#include <linux/platform_data/simplefb.h>

‎drivers/gpu/drm/arc/arcpgu_drv.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@
1616

1717
#include <linux/clk.h>
1818
#include <drm/drm_crtc_helper.h>
19+
#include <drm/drm_device.h>
20+
#include <drm/drm_debugfs.h>
21+
#include <drm/drm_drv.h>
1922
#include <drm/drm_fb_cma_helper.h>
2023
#include <drm/drm_fb_helper.h>
2124
#include <drm/drm_gem_cma_helper.h>
2225
#include <drm/drm_gem_framebuffer_helper.h>
2326
#include <drm/drm_atomic_helper.h>
27+
#include <linux/dma-mapping.h>
28+
#include <linux/module.h>
2429
#include <linux/of_reserved_mem.h>
30+
#include <linux/platform_device.h>
2531

2632
#include "arcpgu.h"
2733
#include "arcpgu_regs.h"

0 commit comments

Comments
 (0)