mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
drm/nouveau/cipher: switch to gpuobj accessor macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
edb1dc51de
commit
6d06fd68cb
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue