drm/nouveau/cipher: switch to gpuobj accessor macros
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:14 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:28 +0000 (12:40 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c

index ddc240d25d81768ce391ae11f789cbe65bdd855b..312df6fa57078df13590f9c0df36ef1c2a5284b0 100644 (file)
@@ -47,10 +47,12 @@ g84_cipher_object_ctor(struct nvkm_object *parent,
        if (ret)
                return ret;
 
-       nv_wo32(obj, 0x00, nv_mclass(obj));
-       nv_wo32(obj, 0x04, 0x00000000);
-       nv_wo32(obj, 0x08, 0x00000000);
-       nv_wo32(obj, 0x0c, 0x00000000);
+       nvkm_kmap(obj);
+       nvkm_wo32(obj, 0x00, nv_mclass(obj));
+       nvkm_wo32(obj, 0x04, 0x00000000);
+       nvkm_wo32(obj, 0x08, 0x00000000);
+       nvkm_wo32(obj, 0x0c, 0x00000000);
+       nvkm_done(obj);
        return 0;
 }