diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 07:54:10 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 05:40:17 +0300 |
commit | 2fde1f1c343030d169945aa67a0e485b568f1393 (patch) | |
tree | ad6954a7a03f2322fccc5be490de788e3e6e922c /drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c | |
parent | f9793bb7ed4d83c1b72661c1cca2949a343df231 (diff) | |
download | linux-2fde1f1c343030d169945aa67a0e485b568f1393.tar.xz |
drm/nouveau/disp: switch to device pri macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c index 558c38736f55..13a02ac2ffa7 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c @@ -54,8 +54,9 @@ gm107_disp_ctor(struct nvkm_object *parent, struct nvkm_object *engine, struct nvkm_oclass *oclass, void *data, u32 size, struct nvkm_object **pobject) { + struct nvkm_device *device = (void *)parent; struct nv50_disp *disp; - int heads = nv_rd32(parent, 0x022448); + int heads = nvkm_rd32(device, 0x022448); int ret; ret = nvkm_disp_create(parent, engine, oclass, heads, |