Commit 2e737e52 authored by Lucas Stach's avatar Lucas Stach

drm/etnaviv: clean up includes

Drop unused includes, move more includes from the generic etnaviv_drv.h to
the units where they are actually used, sort includes.
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent facb180d
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <linux/component.h> #include <linux/component.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/module.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
......
...@@ -6,17 +6,9 @@ ...@@ -6,17 +6,9 @@
#ifndef __ETNAVIV_DRV_H__ #ifndef __ETNAVIV_DRV_H__
#define __ETNAVIV_DRV_H__ #define __ETNAVIV_DRV_H__
#include <linux/clk.h>
#include <linux/cpufreq.h>
#include <linux/kernel.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/mm_types.h> #include <linux/mm_types.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/sizes.h> #include <linux/sizes.h>
#include <linux/slab.h>
#include <linux/time64.h> #include <linux/time64.h>
#include <linux/types.h> #include <linux/types.h>
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
*/ */
#include <linux/devcoredump.h> #include <linux/devcoredump.h>
#include <linux/moduleparam.h>
#include "etnaviv_cmdbuf.h" #include "etnaviv_cmdbuf.h"
#include "etnaviv_dump.h" #include "etnaviv_dump.h"
#include "etnaviv_gem.h" #include "etnaviv_gem.h"
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
#include <drm/drm_prime.h> #include <drm/drm_prime.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/sched/mm.h>
#include <linux/sched/task.h>
#include <linux/shmem_fs.h> #include <linux/shmem_fs.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <drm/drm_file.h> #include <drm/drm_file.h>
#include <linux/dma-fence-array.h> #include <linux/dma-fence-array.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/pm_runtime.h>
#include <linux/reservation.h> #include <linux/reservation.h>
#include <linux/sync_file.h> #include <linux/sync_file.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
......
...@@ -8,8 +8,10 @@ ...@@ -8,8 +8,10 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/dma-fence.h> #include <linux/dma-fence.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/moduleparam.h> #include <linux/module.h>
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#include <linux/thermal.h> #include <linux/thermal.h>
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
* Copyright (C) 2014-2018 Etnaviv Project * Copyright (C) 2014-2018 Etnaviv Project
*/ */
#include <linux/bitops.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/sizes.h> #include <linux/sizes.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/dma-mapping.h>
#include <linux/bitops.h>
#include "etnaviv_gpu.h" #include "etnaviv_gpu.h"
#include "etnaviv_mmu.h" #include "etnaviv_mmu.h"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Copyright (C) 2017 Etnaviv Project * Copyright (C) 2017 Etnaviv Project
*/ */
#include <linux/kthread.h> #include <linux/moduleparam.h>
#include "etnaviv_drv.h" #include "etnaviv_drv.h"
#include "etnaviv_dump.h" #include "etnaviv_dump.h"
......
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