diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2018-10-15 06:49:07 -0400 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-12-18 05:55:11 -0500 |
commit | f9d255f4549e9798dce30408f25645710b5eed58 (patch) | |
tree | 8a3b426107975263fd8bb3e96b2cea0d7f8e8c33 | |
parent | 5a23144cb507bda66b98666e46b8b677df14c2e7 (diff) |
drm/etnaviv: replace header include with forward declaration
The etnaviv_gpu header only needs to know about the pointer types, so
replace by a forward declaration and only include the headers where needed.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 293e248e1b29..aefb17e39ad0 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c | |||
@@ -3,10 +3,12 @@ | |||
3 | * Copyright (C) 2015-2018 Etnaviv Project | 3 | * Copyright (C) 2015-2018 Etnaviv Project |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include <linux/clk.h> | ||
6 | #include <linux/component.h> | 7 | #include <linux/component.h> |
7 | #include <linux/dma-fence.h> | 8 | #include <linux/dma-fence.h> |
8 | #include <linux/moduleparam.h> | 9 | #include <linux/moduleparam.h> |
9 | #include <linux/of_device.h> | 10 | #include <linux/of_device.h> |
11 | #include <linux/regulator/consumer.h> | ||
10 | #include <linux/thermal.h> | 12 | #include <linux/thermal.h> |
11 | 13 | ||
12 | #include "etnaviv_cmdbuf.h" | 14 | #include "etnaviv_cmdbuf.h" |
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h index 74758f21e5d3..56b6a8ee7ec0 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h | |||
@@ -6,9 +6,6 @@ | |||
6 | #ifndef __ETNAVIV_GPU_H__ | 6 | #ifndef __ETNAVIV_GPU_H__ |
7 | #define __ETNAVIV_GPU_H__ | 7 | #define __ETNAVIV_GPU_H__ |
8 | 8 | ||
9 | #include <linux/clk.h> | ||
10 | #include <linux/regulator/consumer.h> | ||
11 | |||
12 | #include "etnaviv_cmdbuf.h" | 9 | #include "etnaviv_cmdbuf.h" |
13 | #include "etnaviv_drv.h" | 10 | #include "etnaviv_drv.h" |
14 | 11 | ||
@@ -88,6 +85,8 @@ struct etnaviv_event { | |||
88 | 85 | ||
89 | struct etnaviv_cmdbuf_suballoc; | 86 | struct etnaviv_cmdbuf_suballoc; |
90 | struct etnaviv_cmdbuf; | 87 | struct etnaviv_cmdbuf; |
88 | struct regulator; | ||
89 | struct clk; | ||
91 | 90 | ||
92 | #define ETNA_NR_EVENTS 30 | 91 | #define ETNA_NR_EVENTS 30 |
93 | 92 | ||