Commit 6d06fd68 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/cipher: switch to gpuobj accessor macros

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent edb1dc51
...@@ -47,10 +47,12 @@ g84_cipher_object_ctor(struct nvkm_object *parent, ...@@ -47,10 +47,12 @@ g84_cipher_object_ctor(struct nvkm_object *parent,
if (ret) if (ret)
return ret; return ret;
nv_wo32(obj, 0x00, nv_mclass(obj)); nvkm_kmap(obj);
nv_wo32(obj, 0x04, 0x00000000); nvkm_wo32(obj, 0x00, nv_mclass(obj));
nv_wo32(obj, 0x08, 0x00000000); nvkm_wo32(obj, 0x04, 0x00000000);
nv_wo32(obj, 0x0c, 0x00000000); nvkm_wo32(obj, 0x08, 0x00000000);
nvkm_wo32(obj, 0x0c, 0x00000000);
nvkm_done(obj);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment