summaryrefslogtreecommitdiff
path: root/drm/nouveau/nvkm/subdev/fb/nv04.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:09 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:37:29 +1000
commitae0cdc10ea22c896ece3a9d40e7287e8bc226ad0 (patch)
tree61aed83bb6c3e60b9c9e0ca7299831b54ed3dc34 /drm/nouveau/nvkm/subdev/fb/nv04.c
parentdbd4c2b3bfa587acb8c5c62649bb3e7ab9b53126 (diff)
downloadnouveau-ae0cdc10ea22c896ece3a9d40e7287e8bc226ad0.tar.gz
fb: switch to device pri macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nvkm/subdev/fb/nv04.c')
-rw-r--r--drm/nouveau/nvkm/subdev/fb/nv04.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drm/nouveau/nvkm/subdev/fb/nv04.c b/drm/nouveau/nvkm/subdev/fb/nv04.c
index 9e55308c9..7fb578fb8 100644
--- a/drm/nouveau/nvkm/subdev/fb/nv04.c
+++ b/drm/nouveau/nvkm/subdev/fb/nv04.c
@@ -37,6 +37,7 @@ static int
nv04_fb_init(struct nvkm_object *object)
{
struct nvkm_fb *fb = (void *)object;
+ struct nvkm_device *device = fb->subdev.device;
int ret;
ret = nvkm_fb_init(fb);
@@ -47,7 +48,7 @@ nv04_fb_init(struct nvkm_object *object)
* nvidia reading PFB_CFG_0, then writing back its original value.
* (which was 0x701114 in this case)
*/
- nv_wr32(fb, NV04_PFB_CFG0, 0x1114);
+ nvkm_wr32(device, NV04_PFB_CFG0, 0x1114);
return 0;
}