diff options
Diffstat (limited to 'nvkm/engine/copy')
-rw-r--r-- | nvkm/engine/copy/nvc0.c | 2 | ||||
-rw-r--r-- | nvkm/engine/copy/nve0.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nvkm/engine/copy/nvc0.c b/nvkm/engine/copy/nvc0.c index 9261694d0..20a8cd7f7 100644 --- a/nvkm/engine/copy/nvc0.c +++ b/nvkm/engine/copy/nvc0.c @@ -91,7 +91,7 @@ nvc0_copy_init(struct nouveau_object *object) if (ret) return ret; - nv_wo32(priv, 0x084, nv_engidx(object) - NVDEV_ENGINE_COPY0); + nv_wo32(priv, 0x084, nv_engidx(&priv->base.base) - NVDEV_ENGINE_COPY0); return 0; } diff --git a/nvkm/engine/copy/nve0.c b/nvkm/engine/copy/nve0.c index c7194b354..b140a01dd 100644 --- a/nvkm/engine/copy/nve0.c +++ b/nvkm/engine/copy/nve0.c @@ -69,7 +69,7 @@ nve0_copy_cclass = { static void nve0_copy_intr(struct nouveau_subdev *subdev) { - const int ce = nv_subidx(nv_object(subdev)) - NVDEV_ENGINE_COPY0; + const int ce = nv_subidx(subdev) - NVDEV_ENGINE_COPY0; struct nve0_copy_priv *priv = (void *)subdev; u32 stat = nv_rd32(priv, 0x104908 + (ce * 0x1000)); |