summaryrefslogtreecommitdiff
path: root/drm/nouveau/nvkm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:06 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:37:26 +1000
commit82f00052500c9fff9d7dc5763775b3b51dda1117 (patch)
treed1c6ee3cbb2deffc31d7d4ee7ceb1c3c5ee6e1aa /drm/nouveau/nvkm
parente98fd02942467878208d8e5bca8367863f2ad2bf (diff)
downloadnouveau-82f00052500c9fff9d7dc5763775b3b51dda1117.tar.gz
device: include core/device.h automatically for subdevs/engines
Pretty much every subdev/engine is going to need access to nvkm_device shortly to touch registers and/or output messages. The odd placement of the includes is necessary to work around some inter-dependencies that currently exist. This will be fixed later. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nvkm')
-rw-r--r--drm/nouveau/nvkm/engine/ce/gt215.c1
-rw-r--r--drm/nouveau/nvkm/engine/disp/nv04.c1
-rw-r--r--drm/nouveau/nvkm/engine/disp/nv50.c1
-rw-r--r--drm/nouveau/nvkm/engine/disp/sorg94.c1
-rw-r--r--drm/nouveau/nvkm/engine/disp/vga.c2
-rw-r--r--drm/nouveau/nvkm/engine/dmaobj/base.c1
-rw-r--r--drm/nouveau/nvkm/engine/falcon.c1
-rw-r--r--drm/nouveau/nvkm/engine/fifo/base.c1
-rw-r--r--drm/nouveau/nvkm/engine/fifo/nv04.c1
-rw-r--r--drm/nouveau/nvkm/engine/fifo/nv40.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/ctxnv40.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/ctxnv50.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/gf100.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/nv04.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/nv10.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/nv20.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/nv30.c1
-rw-r--r--drm/nouveau/nvkm/engine/gr/nv40.h1
-rw-r--r--drm/nouveau/nvkm/engine/gr/nv50.c1
-rw-r--r--drm/nouveau/nvkm/engine/pm/base.c1
-rw-r--r--drm/nouveau/nvkm/engine/sw/nv50.c1
-rw-r--r--drm/nouveau/nvkm/engine/xtensa.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bar/base.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bar/gf100.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bar/nv50.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bios/dcb.c2
-rw-r--r--drm/nouveau/nvkm/subdev/bios/init.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bios/perf.c2
-rw-r--r--drm/nouveau/nvkm/subdev/bios/pll.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bios/shadow.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bios/shadowacpi.c2
-rw-r--r--drm/nouveau/nvkm/subdev/bios/shadowof.c1
-rw-r--r--drm/nouveau/nvkm/subdev/bios/shadowpci.c2
-rw-r--r--drm/nouveau/nvkm/subdev/bios/shadowramin.c2
-rw-r--r--drm/nouveau/nvkm/subdev/bios/shadowrom.c2
-rw-r--r--drm/nouveau/nvkm/subdev/bios/therm.c2
-rw-r--r--drm/nouveau/nvkm/subdev/clk/base.c1
-rw-r--r--drm/nouveau/nvkm/subdev/clk/gf100.c1
-rw-r--r--drm/nouveau/nvkm/subdev/clk/gk104.c1
-rw-r--r--drm/nouveau/nvkm/subdev/clk/gk20a.c2
-rw-r--r--drm/nouveau/nvkm/subdev/clk/gt215.c1
-rw-r--r--drm/nouveau/nvkm/subdev/clk/mcp77.c1
-rw-r--r--drm/nouveau/nvkm/subdev/clk/nv40.c1
-rw-r--r--drm/nouveau/nvkm/subdev/clk/nv50.c1
-rw-r--r--drm/nouveau/nvkm/subdev/devinit/base.c1
-rw-r--r--drm/nouveau/nvkm/subdev/devinit/fbmem.h1
-rw-r--r--drm/nouveau/nvkm/subdev/fb/gf100.c2
-rw-r--r--drm/nouveau/nvkm/subdev/fb/nv30.c2
-rw-r--r--drm/nouveau/nvkm/subdev/fb/nv50.c1
-rw-r--r--drm/nouveau/nvkm/subdev/fb/ramgf100.c1
-rw-r--r--drm/nouveau/nvkm/subdev/fb/ramgk104.c1
-rw-r--r--drm/nouveau/nvkm/subdev/fb/ramgt215.c1
-rw-r--r--drm/nouveau/nvkm/subdev/fb/ramnv1a.c2
-rw-r--r--drm/nouveau/nvkm/subdev/fb/ramnv40.c1
-rw-r--r--drm/nouveau/nvkm/subdev/fb/ramnv50.c1
-rw-r--r--drm/nouveau/nvkm/subdev/gpio/base.c1
-rw-r--r--drm/nouveau/nvkm/subdev/i2c/base.c1
-rw-r--r--drm/nouveau/nvkm/subdev/instmem/gk20a.c1
-rw-r--r--drm/nouveau/nvkm/subdev/mc/base.c1
-rw-r--r--drm/nouveau/nvkm/subdev/mc/nv50.c2
-rw-r--r--drm/nouveau/nvkm/subdev/mmu/nv04.c1
-rw-r--r--drm/nouveau/nvkm/subdev/mmu/nv41.c1
-rw-r--r--drm/nouveau/nvkm/subdev/mmu/nv44.c1
-rw-r--r--drm/nouveau/nvkm/subdev/mxm/base.c1
-rw-r--r--drm/nouveau/nvkm/subdev/pmu/memx.c2
-rw-r--r--drm/nouveau/nvkm/subdev/therm/base.c2
-rw-r--r--drm/nouveau/nvkm/subdev/therm/fanpwm.c1
-rw-r--r--drm/nouveau/nvkm/subdev/therm/gf110.c2
-rw-r--r--drm/nouveau/nvkm/subdev/therm/gm107.c2
-rw-r--r--drm/nouveau/nvkm/subdev/therm/gt215.c1
-rw-r--r--drm/nouveau/nvkm/subdev/therm/nv40.c2
-rw-r--r--drm/nouveau/nvkm/subdev/therm/nv50.c2
-rw-r--r--drm/nouveau/nvkm/subdev/timer/nv04.c2
73 files changed, 0 insertions, 93 deletions
diff --git a/drm/nouveau/nvkm/engine/ce/gt215.c b/drm/nouveau/nvkm/engine/ce/gt215.c
index d8bb4293b..72604d332 100644
--- a/drm/nouveau/nvkm/engine/ce/gt215.c
+++ b/drm/nouveau/nvkm/engine/ce/gt215.c
@@ -27,7 +27,6 @@
#include "fuc/gt215.fuc3.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/enum.h>
struct gt215_ce_priv {
diff --git a/drm/nouveau/nvkm/engine/disp/nv04.c b/drm/nouveau/nvkm/engine/disp/nv04.c
index ff09b2659..b8f9e5c2b 100644
--- a/drm/nouveau/nvkm/engine/disp/nv04.c
+++ b/drm/nouveau/nvkm/engine/disp/nv04.c
@@ -24,7 +24,6 @@
#include "priv.h"
#include <core/client.h>
-#include <core/device.h>
#include <nvif/class.h>
#include <nvif/unpack.h>
diff --git a/drm/nouveau/nvkm/engine/disp/nv50.c b/drm/nouveau/nvkm/engine/disp/nv50.c
index 8ba808df2..25fcabcb1 100644
--- a/drm/nouveau/nvkm/engine/disp/nv50.c
+++ b/drm/nouveau/nvkm/engine/disp/nv50.c
@@ -26,7 +26,6 @@
#include "outpdp.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/engctx.h>
#include <core/enum.h>
#include <core/handle.h>
diff --git a/drm/nouveau/nvkm/engine/disp/sorg94.c b/drm/nouveau/nvkm/engine/disp/sorg94.c
index 22443627a..0b4ecb837 100644
--- a/drm/nouveau/nvkm/engine/disp/sorg94.c
+++ b/drm/nouveau/nvkm/engine/disp/sorg94.c
@@ -24,7 +24,6 @@
#include "nv50.h"
#include "outpdp.h"
-#include <core/device.h>
#include <subdev/timer.h>
static inline u32
diff --git a/drm/nouveau/nvkm/engine/disp/vga.c b/drm/nouveau/nvkm/engine/disp/vga.c
index c4622c738..c91d73bc9 100644
--- a/drm/nouveau/nvkm/engine/disp/vga.c
+++ b/drm/nouveau/nvkm/engine/disp/vga.c
@@ -23,8 +23,6 @@
*/
#include <subdev/vga.h>
-#include <core/device.h>
-
u8
nv_rdport(void *obj, int head, u16 port)
{
diff --git a/drm/nouveau/nvkm/engine/dmaobj/base.c b/drm/nouveau/nvkm/engine/dmaobj/base.c
index a2b60d86b..3adab2ed7 100644
--- a/drm/nouveau/nvkm/engine/dmaobj/base.c
+++ b/drm/nouveau/nvkm/engine/dmaobj/base.c
@@ -24,7 +24,6 @@
#include "priv.h"
#include <core/client.h>
-#include <core/device.h>
#include <subdev/fb.h>
#include <subdev/instmem.h>
diff --git a/drm/nouveau/nvkm/engine/falcon.c b/drm/nouveau/nvkm/engine/falcon.c
index 30958c19e..f6e9ae95c 100644
--- a/drm/nouveau/nvkm/engine/falcon.c
+++ b/drm/nouveau/nvkm/engine/falcon.c
@@ -21,7 +21,6 @@
*/
#include <engine/falcon.h>
-#include <core/device.h>
#include <subdev/timer.h>
void
diff --git a/drm/nouveau/nvkm/engine/fifo/base.c b/drm/nouveau/nvkm/engine/fifo/base.c
index fa223f88d..a85014bb3 100644
--- a/drm/nouveau/nvkm/engine/fifo/base.c
+++ b/drm/nouveau/nvkm/engine/fifo/base.c
@@ -24,7 +24,6 @@
#include <engine/fifo.h>
#include <core/client.h>
-#include <core/device.h>
#include <core/handle.h>
#include <core/notify.h>
#include <engine/dmaobj.h>
diff --git a/drm/nouveau/nvkm/engine/fifo/nv04.c b/drm/nouveau/nvkm/engine/fifo/nv04.c
index 043e42960..d157aaede 100644
--- a/drm/nouveau/nvkm/engine/fifo/nv04.c
+++ b/drm/nouveau/nvkm/engine/fifo/nv04.c
@@ -24,7 +24,6 @@
#include "nv04.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/engctx.h>
#include <core/handle.h>
#include <core/ramht.h>
diff --git a/drm/nouveau/nvkm/engine/fifo/nv40.c b/drm/nouveau/nvkm/engine/fifo/nv40.c
index 5bfc96265..24930d9b6 100644
--- a/drm/nouveau/nvkm/engine/fifo/nv40.c
+++ b/drm/nouveau/nvkm/engine/fifo/nv40.c
@@ -24,7 +24,6 @@
#include "nv04.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/engctx.h>
#include <core/ramht.h>
#include <subdev/fb.h>
diff --git a/drm/nouveau/nvkm/engine/gr/ctxnv40.c b/drm/nouveau/nvkm/engine/gr/ctxnv40.c
index dc31462af..a3b0b366f 100644
--- a/drm/nouveau/nvkm/engine/gr/ctxnv40.c
+++ b/drm/nouveau/nvkm/engine/gr/ctxnv40.c
@@ -111,7 +111,6 @@
#include "ctxnv40.h"
#include "nv40.h"
-#include <core/device.h>
/* TODO:
* - get vs count from 0x1540
diff --git a/drm/nouveau/nvkm/engine/gr/ctxnv50.c b/drm/nouveau/nvkm/engine/gr/ctxnv50.c
index 9c9528d2c..a9a4e0e3f 100644
--- a/drm/nouveau/nvkm/engine/gr/ctxnv50.c
+++ b/drm/nouveau/nvkm/engine/gr/ctxnv50.c
@@ -107,7 +107,6 @@
#include "ctxnv40.h"
-#include <core/device.h>
#include <subdev/fb.h>
#define IS_NVA3F(x) (((x) > 0xa0 && (x) < 0xaa) || (x) == 0xaf)
diff --git a/drm/nouveau/nvkm/engine/gr/gf100.c b/drm/nouveau/nvkm/engine/gr/gf100.c
index e7c3e9e57..1ca9385f5 100644
--- a/drm/nouveau/nvkm/engine/gr/gf100.c
+++ b/drm/nouveau/nvkm/engine/gr/gf100.c
@@ -26,7 +26,6 @@
#include "fuc/os.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/handle.h>
#include <core/option.h>
#include <engine/fifo.h>
diff --git a/drm/nouveau/nvkm/engine/gr/nv04.c b/drm/nouveau/nvkm/engine/gr/nv04.c
index 2614510c2..81abe6fb3 100644
--- a/drm/nouveau/nvkm/engine/gr/nv04.c
+++ b/drm/nouveau/nvkm/engine/gr/nv04.c
@@ -25,7 +25,6 @@
#include "regs.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/handle.h>
#include <engine/fifo.h>
#include <subdev/instmem.h>
diff --git a/drm/nouveau/nvkm/engine/gr/nv10.c b/drm/nouveau/nvkm/engine/gr/nv10.c
index 389904eb6..62a4d7974 100644
--- a/drm/nouveau/nvkm/engine/gr/nv10.c
+++ b/drm/nouveau/nvkm/engine/gr/nv10.c
@@ -25,7 +25,6 @@
#include "regs.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/handle.h>
#include <engine/fifo.h>
#include <subdev/fb.h>
diff --git a/drm/nouveau/nvkm/engine/gr/nv20.c b/drm/nouveau/nvkm/engine/gr/nv20.c
index 1713ffb66..5d8dbac3c 100644
--- a/drm/nouveau/nvkm/engine/gr/nv20.c
+++ b/drm/nouveau/nvkm/engine/gr/nv20.c
@@ -2,7 +2,6 @@
#include "regs.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/handle.h>
#include <engine/fifo.h>
#include <subdev/fb.h>
diff --git a/drm/nouveau/nvkm/engine/gr/nv30.c b/drm/nouveau/nvkm/engine/gr/nv30.c
index dcc84eb54..207464c3c 100644
--- a/drm/nouveau/nvkm/engine/gr/nv30.c
+++ b/drm/nouveau/nvkm/engine/gr/nv30.c
@@ -1,7 +1,6 @@
#include "nv20.h"
#include "regs.h"
-#include <core/device.h>
#include <engine/fifo.h>
#include <subdev/fb.h>
diff --git a/drm/nouveau/nvkm/engine/gr/nv40.h b/drm/nouveau/nvkm/engine/gr/nv40.h
index d852bd6de..01d9f73a0 100644
--- a/drm/nouveau/nvkm/engine/gr/nv40.h
+++ b/drm/nouveau/nvkm/engine/gr/nv40.h
@@ -2,7 +2,6 @@
#define __NV40_GR_H__
#include <engine/gr.h>
-#include <core/device.h>
struct nvkm_gpuobj;
/* returns 1 if device is one of the nv4x using the 0x4497 object class,
diff --git a/drm/nouveau/nvkm/engine/gr/nv50.c b/drm/nouveau/nvkm/engine/gr/nv50.c
index 270d7cd63..754284fea 100644
--- a/drm/nouveau/nvkm/engine/gr/nv50.c
+++ b/drm/nouveau/nvkm/engine/gr/nv50.c
@@ -24,7 +24,6 @@
#include "nv50.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/handle.h>
#include <engine/fifo.h>
#include <subdev/timer.h>
diff --git a/drm/nouveau/nvkm/engine/pm/base.c b/drm/nouveau/nvkm/engine/pm/base.c
index 48c1ce6e6..8741201d4 100644
--- a/drm/nouveau/nvkm/engine/pm/base.c
+++ b/drm/nouveau/nvkm/engine/pm/base.c
@@ -24,7 +24,6 @@
#include "priv.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/option.h>
#include <nvif/class.h>
diff --git a/drm/nouveau/nvkm/engine/sw/nv50.c b/drm/nouveau/nvkm/engine/sw/nv50.c
index 401fcd730..14d9650f4 100644
--- a/drm/nouveau/nvkm/engine/sw/nv50.c
+++ b/drm/nouveau/nvkm/engine/sw/nv50.c
@@ -23,7 +23,6 @@
*/
#include "nv50.h"
-#include <core/device.h>
#include <core/handle.h>
#include <core/namedb.h>
#include <engine/disp.h>
diff --git a/drm/nouveau/nvkm/engine/xtensa.c b/drm/nouveau/nvkm/engine/xtensa.c
index cea90df53..3995d2cf0 100644
--- a/drm/nouveau/nvkm/engine/xtensa.c
+++ b/drm/nouveau/nvkm/engine/xtensa.c
@@ -20,7 +20,6 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include <engine/xtensa.h>
-#include <core/device.h>
#include <core/engctx.h>
diff --git a/drm/nouveau/nvkm/subdev/bar/base.c b/drm/nouveau/nvkm/subdev/bar/base.c
index 3502d0012..9b6b9ac34 100644
--- a/drm/nouveau/nvkm/subdev/bar/base.c
+++ b/drm/nouveau/nvkm/subdev/bar/base.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <subdev/fb.h>
#include <subdev/mmu.h>
diff --git a/drm/nouveau/nvkm/subdev/bar/gf100.c b/drm/nouveau/nvkm/subdev/bar/gf100.c
index 12a1aebd9..4c6d238dd 100644
--- a/drm/nouveau/nvkm/subdev/bar/gf100.c
+++ b/drm/nouveau/nvkm/subdev/bar/gf100.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <core/gpuobj.h>
#include <subdev/fb.h>
#include <subdev/mmu.h>
diff --git a/drm/nouveau/nvkm/subdev/bar/nv50.c b/drm/nouveau/nvkm/subdev/bar/nv50.c
index 8548adb91..36c5c083c 100644
--- a/drm/nouveau/nvkm/subdev/bar/nv50.c
+++ b/drm/nouveau/nvkm/subdev/bar/nv50.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <core/gpuobj.h>
#include <subdev/fb.h>
#include <subdev/mmu.h>
diff --git a/drm/nouveau/nvkm/subdev/bios/dcb.c b/drm/nouveau/nvkm/subdev/bios/dcb.c
index 95e9208e4..146357171 100644
--- a/drm/nouveau/nvkm/subdev/bios/dcb.c
+++ b/drm/nouveau/nvkm/subdev/bios/dcb.c
@@ -24,8 +24,6 @@
#include <subdev/bios.h>
#include <subdev/bios/dcb.h>
-#include <core/device.h>
-
u16
dcb_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
{
diff --git a/drm/nouveau/nvkm/subdev/bios/init.c b/drm/nouveau/nvkm/subdev/bios/init.c
index 8e5f6ce76..045b7ddb4 100644
--- a/drm/nouveau/nvkm/subdev/bios/init.c
+++ b/drm/nouveau/nvkm/subdev/bios/init.c
@@ -31,7 +31,6 @@
#include <subdev/bios/init.h>
#include <subdev/bios/ramcfg.h>
-#include <core/device.h>
#include <subdev/devinit.h>
#include <subdev/gpio.h>
#include <subdev/i2c.h>
diff --git a/drm/nouveau/nvkm/subdev/bios/perf.c b/drm/nouveau/nvkm/subdev/bios/perf.c
index 382ae9cdb..1e70d0eae 100644
--- a/drm/nouveau/nvkm/subdev/bios/perf.c
+++ b/drm/nouveau/nvkm/subdev/bios/perf.c
@@ -25,8 +25,6 @@
#include <subdev/bios/bit.h>
#include <subdev/bios/perf.h>
-#include <core/device.h>
-
u16
nvbios_perf_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr,
u8 *cnt, u8 *len, u8 *snr, u8 *ssz)
diff --git a/drm/nouveau/nvkm/subdev/bios/pll.c b/drm/nouveau/nvkm/subdev/bios/pll.c
index ebd402e19..ac48ccc5d 100644
--- a/drm/nouveau/nvkm/subdev/bios/pll.c
+++ b/drm/nouveau/nvkm/subdev/bios/pll.c
@@ -27,7 +27,6 @@
#include <subdev/bios/pll.h>
#include <subdev/vga.h>
-#include <core/device.h>
struct pll_mapping {
u8 type;
diff --git a/drm/nouveau/nvkm/subdev/bios/shadow.c b/drm/nouveau/nvkm/subdev/bios/shadow.c
index 8c2b7cba5..6192a9e27 100644
--- a/drm/nouveau/nvkm/subdev/bios/shadow.c
+++ b/drm/nouveau/nvkm/subdev/bios/shadow.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/image.h>
diff --git a/drm/nouveau/nvkm/subdev/bios/shadowacpi.c b/drm/nouveau/nvkm/subdev/bios/shadowacpi.c
index f9d0eb564..74604d4a7 100644
--- a/drm/nouveau/nvkm/subdev/bios/shadowacpi.c
+++ b/drm/nouveau/nvkm/subdev/bios/shadowacpi.c
@@ -22,8 +22,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
#if defined(CONFIG_ACPI) && defined(CONFIG_X86)
int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len);
bool nouveau_acpi_rom_supported(struct pci_dev *pdev);
diff --git a/drm/nouveau/nvkm/subdev/bios/shadowof.c b/drm/nouveau/nvkm/subdev/bios/shadowof.c
index 4c19a7dba..4f5cbf4d9 100644
--- a/drm/nouveau/nvkm/subdev/bios/shadowof.c
+++ b/drm/nouveau/nvkm/subdev/bios/shadowof.c
@@ -22,7 +22,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#if defined(__powerpc__)
struct priv {
diff --git a/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drm/nouveau/nvkm/subdev/bios/shadowpci.c
index 1b045483d..ae1e229b6 100644
--- a/drm/nouveau/nvkm/subdev/bios/shadowpci.c
+++ b/drm/nouveau/nvkm/subdev/bios/shadowpci.c
@@ -22,8 +22,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
struct priv {
struct pci_dev *pdev;
void __iomem *rom;
diff --git a/drm/nouveau/nvkm/subdev/bios/shadowramin.c b/drm/nouveau/nvkm/subdev/bios/shadowramin.c
index abe8ae4d3..c2c31ba59 100644
--- a/drm/nouveau/nvkm/subdev/bios/shadowramin.c
+++ b/drm/nouveau/nvkm/subdev/bios/shadowramin.c
@@ -22,8 +22,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
struct priv {
struct nvkm_bios *bios;
u32 bar0;
diff --git a/drm/nouveau/nvkm/subdev/bios/shadowrom.c b/drm/nouveau/nvkm/subdev/bios/shadowrom.c
index 6ec3b2379..cd0b06fbc 100644
--- a/drm/nouveau/nvkm/subdev/bios/shadowrom.c
+++ b/drm/nouveau/nvkm/subdev/bios/shadowrom.c
@@ -22,8 +22,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
static u32
prom_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios)
{
diff --git a/drm/nouveau/nvkm/subdev/bios/therm.c b/drm/nouveau/nvkm/subdev/bios/therm.c
index 249ff6d58..8fbb8917b 100644
--- a/drm/nouveau/nvkm/subdev/bios/therm.c
+++ b/drm/nouveau/nvkm/subdev/bios/therm.c
@@ -25,8 +25,6 @@
#include <subdev/bios/bit.h>
#include <subdev/bios/therm.h>
-#include <core/device.h>
-
static u16
therm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt)
{
diff --git a/drm/nouveau/nvkm/subdev/clk/base.c b/drm/nouveau/nvkm/subdev/clk/base.c
index 77a0ab5ca..cba018d02 100644
--- a/drm/nouveau/nvkm/subdev/clk/base.c
+++ b/drm/nouveau/nvkm/subdev/clk/base.c
@@ -30,7 +30,6 @@
#include <subdev/therm.h>
#include <subdev/volt.h>
-#include <core/device.h>
#include <core/option.h>
/******************************************************************************
diff --git a/drm/nouveau/nvkm/subdev/clk/gf100.c b/drm/nouveau/nvkm/subdev/clk/gf100.c
index 3d7330d54..e8125b519 100644
--- a/drm/nouveau/nvkm/subdev/clk/gf100.c
+++ b/drm/nouveau/nvkm/subdev/clk/gf100.c
@@ -24,7 +24,6 @@
#include <subdev/clk.h>
#include "pll.h"
-#include <core/device.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
#include <subdev/timer.h>
diff --git a/drm/nouveau/nvkm/subdev/clk/gk104.c b/drm/nouveau/nvkm/subdev/clk/gk104.c
index e9b2310bd..e380d62df 100644
--- a/drm/nouveau/nvkm/subdev/clk/gk104.c
+++ b/drm/nouveau/nvkm/subdev/clk/gk104.c
@@ -24,7 +24,6 @@
#include <subdev/clk.h>
#include "pll.h"
-#include <core/device.h>
#include <subdev/timer.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
diff --git a/drm/nouveau/nvkm/subdev/clk/gk20a.c b/drm/nouveau/nvkm/subdev/clk/gk20a.c
index 65c532742..94d3839fd 100644
--- a/drm/nouveau/nvkm/subdev/clk/gk20a.c
+++ b/drm/nouveau/nvkm/subdev/clk/gk20a.c
@@ -25,8 +25,6 @@
#include <subdev/clk.h>
#include <subdev/timer.h>
-#include <core/device.h>
-
#ifdef __KERNEL__
#include <nouveau_platform.h>
#endif
diff --git a/drm/nouveau/nvkm/subdev/clk/gt215.c b/drm/nouveau/nvkm/subdev/clk/gt215.c
index 065e9f5c8..581e3a696 100644
--- a/drm/nouveau/nvkm/subdev/clk/gt215.c
+++ b/drm/nouveau/nvkm/subdev/clk/gt215.c
@@ -25,7 +25,6 @@
#include "gt215.h"
#include "pll.h"
-#include <core/device.h>
#include <engine/fifo.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
diff --git a/drm/nouveau/nvkm/subdev/clk/mcp77.c b/drm/nouveau/nvkm/subdev/clk/mcp77.c
index c54417b14..d735de2db 100644
--- a/drm/nouveau/nvkm/subdev/clk/mcp77.c
+++ b/drm/nouveau/nvkm/subdev/clk/mcp77.c
@@ -24,7 +24,6 @@
#include "gt215.h"
#include "pll.h"
-#include <core/device.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
#include <subdev/timer.h>
diff --git a/drm/nouveau/nvkm/subdev/clk/nv40.c b/drm/nouveau/nvkm/subdev/clk/nv40.c
index ed838130c..15668d288 100644
--- a/drm/nouveau/nvkm/subdev/clk/nv40.c
+++ b/drm/nouveau/nvkm/subdev/clk/nv40.c
@@ -24,7 +24,6 @@
#include <subdev/clk.h>
#include "pll.h"
-#include <core/device.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
diff --git a/drm/nouveau/nvkm/subdev/clk/nv50.c b/drm/nouveau/nvkm/subdev/clk/nv50.c
index 89c5d886f..b58f4786e 100644
--- a/drm/nouveau/nvkm/subdev/clk/nv50.c
+++ b/drm/nouveau/nvkm/subdev/clk/nv50.c
@@ -25,7 +25,6 @@
#include "pll.h"
#include "seq.h"
-#include <core/device.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
diff --git a/drm/nouveau/nvkm/subdev/devinit/base.c b/drm/nouveau/nvkm/subdev/devinit/base.c
index b0d7c5f40..5cc7dd24a 100644
--- a/drm/nouveau/nvkm/subdev/devinit/base.c
+++ b/drm/nouveau/nvkm/subdev/devinit/base.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/vga.h>
diff --git a/drm/nouveau/nvkm/subdev/devinit/fbmem.h b/drm/nouveau/nvkm/subdev/devinit/fbmem.h
index 36684c3f9..4e484c40b 100644
--- a/drm/nouveau/nvkm/subdev/devinit/fbmem.h
+++ b/drm/nouveau/nvkm/subdev/devinit/fbmem.h
@@ -23,7 +23,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
-#include <core/device.h>
#include <subdev/fb/regsnv04.h>
#define NV04_PFB_DEBUG_0 0x00100080
diff --git a/drm/nouveau/nvkm/subdev/fb/gf100.c b/drm/nouveau/nvkm/subdev/fb/gf100.c
index d51aa0237..5a6c2b7a6 100644
--- a/drm/nouveau/nvkm/subdev/fb/gf100.c
+++ b/drm/nouveau/nvkm/subdev/fb/gf100.c
@@ -23,8 +23,6 @@
*/
#include "gf100.h"
-#include <core/device.h>
-
extern const u8 gf100_pte_storage_type_map[256];
bool
diff --git a/drm/nouveau/nvkm/subdev/fb/nv30.c b/drm/nouveau/nvkm/subdev/fb/nv30.c
index 09ebb9477..6c0b82f35 100644
--- a/drm/nouveau/nvkm/subdev/fb/nv30.c
+++ b/drm/nouveau/nvkm/subdev/fb/nv30.c
@@ -25,8 +25,6 @@
*/
#include "nv04.h"
-#include <core/device.h>
-
void
nv30_fb_tile_init(struct nvkm_fb *pfb, int i, u32 addr, u32 size, u32 pitch,
u32 flags, struct nvkm_fb_tile *tile)
diff --git a/drm/nouveau/nvkm/subdev/fb/nv50.c b/drm/nouveau/nvkm/subdev/fb/nv50.c
index 0480ce52a..48fd5a5bc 100644
--- a/drm/nouveau/nvkm/subdev/fb/nv50.c
+++ b/drm/nouveau/nvkm/subdev/fb/nv50.c
@@ -24,7 +24,6 @@
#include "nv50.h"
#include <core/client.h>
-#include <core/device.h>
#include <core/engctx.h>
#include <core/enum.h>
diff --git a/drm/nouveau/nvkm/subdev/fb/ramgf100.c b/drm/nouveau/nvkm/subdev/fb/ramgf100.c
index de9f39569..dcb175bea 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramgf100.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramgf100.c
@@ -24,7 +24,6 @@
#include "gf100.h"
#include "ramfuc.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
diff --git a/drm/nouveau/nvkm/subdev/fb/ramgk104.c b/drm/nouveau/nvkm/subdev/fb/ramgk104.c
index 1ef15c3e6..97060ccfb 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramgk104.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramgk104.c
@@ -24,7 +24,6 @@
#include "ramfuc.h"
#include "gf100.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/init.h>
diff --git a/drm/nouveau/nvkm/subdev/fb/ramgt215.c b/drm/nouveau/nvkm/subdev/fb/ramgt215.c
index bc36a4ff1..1d604c075 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramgt215.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramgt215.c
@@ -26,7 +26,6 @@
#include "ramfuc.h"
#include "nv50.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/M0205.h>
diff --git a/drm/nouveau/nvkm/subdev/fb/ramnv1a.c b/drm/nouveau/nvkm/subdev/fb/ramnv1a.c
index fbae05db4..8bb7e432a 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramnv1a.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramnv1a.c
@@ -23,8 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
static int
nv1a_ram_create(struct nvkm_object *parent, struct nvkm_object *engine,
struct nvkm_oclass *oclass, void *data, u32 size,
diff --git a/drm/nouveau/nvkm/subdev/fb/ramnv40.c b/drm/nouveau/nvkm/subdev/fb/ramnv40.c
index 3d31fa45c..a36a90c29 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramnv40.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramnv40.c
@@ -23,7 +23,6 @@
*/
#include "nv40.h"
-#include <core/device.h>
#include <subdev/bios.h>
#include <subdev/bios/bit.h>
#include <subdev/bios/init.h>
diff --git a/drm/nouveau/nvkm/subdev/fb/ramnv50.c b/drm/nouveau/nvkm/subdev/fb/ramnv50.c
index 66db0a4e2..fd0e9cece 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramnv50.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramnv50.c
@@ -24,7 +24,6 @@
#include "nv50.h"
#include "ramseq.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/perf.h>
diff --git a/drm/nouveau/nvkm/subdev/gpio/base.c b/drm/nouveau/nvkm/subdev/gpio/base.c
index 980822d6d..f60284f3b 100644
--- a/drm/nouveau/nvkm/subdev/gpio/base.c
+++ b/drm/nouveau/nvkm/subdev/gpio/base.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <core/notify.h>
static int
diff --git a/drm/nouveau/nvkm/subdev/i2c/base.c b/drm/nouveau/nvkm/subdev/i2c/base.c
index 9200f122c..3e2c2882d 100644
--- a/drm/nouveau/nvkm/subdev/i2c/base.c
+++ b/drm/nouveau/nvkm/subdev/i2c/base.c
@@ -24,7 +24,6 @@
#include "priv.h"
#include "pad.h"
-#include <core/device.h>
#include <core/notify.h>
#include <core/option.h>
#include <subdev/bios.h>
diff --git a/drm/nouveau/nvkm/subdev/instmem/gk20a.c b/drm/nouveau/nvkm/subdev/instmem/gk20a.c
index dd0994d9e..cd8ab5fcb 100644
--- a/drm/nouveau/nvkm/subdev/instmem/gk20a.c
+++ b/drm/nouveau/nvkm/subdev/instmem/gk20a.c
@@ -40,7 +40,6 @@
#include <subdev/fb.h>
#include <core/mm.h>
-#include <core/device.h>
#ifdef __KERNEL__
#include <linux/dma-attrs.h>
diff --git a/drm/nouveau/nvkm/subdev/mc/base.c b/drm/nouveau/nvkm/subdev/mc/base.c
index 5b051a266..8699e5b2f 100644
--- a/drm/nouveau/nvkm/subdev/mc/base.c
+++ b/drm/nouveau/nvkm/subdev/mc/base.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <core/option.h>
static inline void
diff --git a/drm/nouveau/nvkm/subdev/mc/nv50.c b/drm/nouveau/nvkm/subdev/mc/nv50.c
index 40e3019e1..9c43ddce9 100644
--- a/drm/nouveau/nvkm/subdev/mc/nv50.c
+++ b/drm/nouveau/nvkm/subdev/mc/nv50.c
@@ -23,8 +23,6 @@
*/
#include "nv04.h"
-#include <core/device.h>
-
const struct nvkm_mc_intr
nv50_mc_intr[] = {
{ 0x04000000, NVDEV_ENGINE_DISP }, /* DISP before FIFO, so pageflip-timestamping works! */
diff --git a/drm/nouveau/nvkm/subdev/mmu/nv04.c b/drm/nouveau/nvkm/subdev/mmu/nv04.c
index fe93ea271..861c97ade 100644
--- a/drm/nouveau/nvkm/subdev/mmu/nv04.c
+++ b/drm/nouveau/nvkm/subdev/mmu/nv04.c
@@ -23,7 +23,6 @@
*/
#include "nv04.h"
-#include <core/device.h>
#include <core/gpuobj.h>
#define NV04_PDMA_SIZE (128 * 1024 * 1024)
diff --git a/drm/nouveau/nvkm/subdev/mmu/nv41.c b/drm/nouveau/nvkm/subdev/mmu/nv41.c
index 61ee3ab11..37b943aba 100644
--- a/drm/nouveau/nvkm/subdev/mmu/nv41.c
+++ b/drm/nouveau/nvkm/subdev/mmu/nv41.c
@@ -23,7 +23,6 @@
*/
#include "nv04.h"
-#include <core/device.h>
#include <core/gpuobj.h>
#include <core/option.h>
#include <subdev/timer.h>
diff --git a/drm/nouveau/nvkm/subdev/mmu/nv44.c b/drm/nouveau/nvkm/subdev/mmu/nv44.c
index b90ded188..87824693f 100644
--- a/drm/nouveau/nvkm/subdev/mmu/nv44.c
+++ b/drm/nouveau/nvkm/subdev/mmu/nv44.c
@@ -23,7 +23,6 @@
*/
#include "nv04.h"
-#include <core/device.h>
#include <core/gpuobj.h>
#include <core/option.h>
#include <subdev/timer.h>
diff --git a/drm/nouveau/nvkm/subdev/mxm/base.c b/drm/nouveau/nvkm/subdev/mxm/base.c
index 0ca9dcabb..7ecacf60f 100644
--- a/drm/nouveau/nvkm/subdev/mxm/base.c
+++ b/drm/nouveau/nvkm/subdev/mxm/base.c
@@ -23,7 +23,6 @@
*/
#include "mxms.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/mxm.h>
diff --git a/drm/nouveau/nvkm/subdev/pmu/memx.c b/drm/nouveau/nvkm/subdev/pmu/memx.c
index b75c5b885..8e69bc75e 100644
--- a/drm/nouveau/nvkm/subdev/pmu/memx.c
+++ b/drm/nouveau/nvkm/subdev/pmu/memx.c
@@ -2,8 +2,6 @@
#define __NVKM_PMU_MEMX_H__
#include "priv.h"
-#include <core/device.h>
-
struct nvkm_memx {
struct nvkm_pmu *pmu;
u32 base;
diff --git a/drm/nouveau/nvkm/subdev/therm/base.c b/drm/nouveau/nvkm/subdev/therm/base.c
index ec327cb64..eb86c3ed5 100644
--- a/drm/nouveau/nvkm/subdev/therm/base.c
+++ b/drm/nouveau/nvkm/subdev/therm/base.c
@@ -23,8 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
static int
nvkm_therm_update_trip(struct nvkm_therm *therm)
{
diff --git a/drm/nouveau/nvkm/subdev/therm/fanpwm.c b/drm/nouveau/nvkm/subdev/therm/fanpwm.c
index bde5ceaeb..3cf4192a3 100644
--- a/drm/nouveau/nvkm/subdev/therm/fanpwm.c
+++ b/drm/nouveau/nvkm/subdev/therm/fanpwm.c
@@ -24,7 +24,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/fan.h>
diff --git a/drm/nouveau/nvkm/subdev/therm/gf110.c b/drm/nouveau/nvkm/subdev/therm/gf110.c
index 46b7e656a..0540e6886 100644
--- a/drm/nouveau/nvkm/subdev/therm/gf110.c
+++ b/drm/nouveau/nvkm/subdev/therm/gf110.c
@@ -23,8 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
struct gf110_therm_priv {
struct nvkm_therm_priv base;
};
diff --git a/drm/nouveau/nvkm/subdev/therm/gm107.c b/drm/nouveau/nvkm/subdev/therm/gm107.c
index 2fd110f09..c1f3cf361 100644
--- a/drm/nouveau/nvkm/subdev/therm/gm107.c
+++ b/drm/nouveau/nvkm/subdev/therm/gm107.c
@@ -23,8 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
struct gm107_therm_priv {
struct nvkm_therm_priv base;
};
diff --git a/drm/nouveau/nvkm/subdev/therm/gt215.c b/drm/nouveau/nvkm/subdev/therm/gt215.c
index e99be2033..b7fa4716c 100644
--- a/drm/nouveau/nvkm/subdev/therm/gt215.c
+++ b/drm/nouveau/nvkm/subdev/therm/gt215.c
@@ -23,7 +23,6 @@
*/
#include "priv.h"
-#include <core/device.h>
#include <subdev/gpio.h>
struct gt215_therm_priv {
diff --git a/drm/nouveau/nvkm/subdev/therm/nv40.c b/drm/nouveau/nvkm/subdev/therm/nv40.c
index 8496fffd4..20f65fd76 100644
--- a/drm/nouveau/nvkm/subdev/therm/nv40.c
+++ b/drm/nouveau/nvkm/subdev/therm/nv40.c
@@ -24,8 +24,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
struct nv40_therm_priv {
struct nvkm_therm_priv base;
};
diff --git a/drm/nouveau/nvkm/subdev/therm/nv50.c b/drm/nouveau/nvkm/subdev/therm/nv50.c
index 1ef59e892..489dcf355 100644
--- a/drm/nouveau/nvkm/subdev/therm/nv50.c
+++ b/drm/nouveau/nvkm/subdev/therm/nv50.c
@@ -24,8 +24,6 @@
*/
#include "priv.h"
-#include <core/device.h>
-
struct nv50_therm_priv {
struct nvkm_therm_priv base;
};
diff --git a/drm/nouveau/nvkm/subdev/timer/nv04.c b/drm/nouveau/nvkm/subdev/timer/nv04.c
index 6b7facbe5..cf386f9c8 100644
--- a/drm/nouveau/nvkm/subdev/timer/nv04.c
+++ b/drm/nouveau/nvkm/subdev/timer/nv04.c
@@ -23,8 +23,6 @@
*/
#include "nv04.h"
-#include <core/device.h>
-
static u64
nv04_timer_read(struct nvkm_timer *ptimer)
{