drm/nouveau/graph/nvc0: Fix engine pointer retrieval
authorLauri Peltonen <lpeltonen@nvidia.com>
Tue, 17 Feb 2015 06:55:42 +0000 (15:55 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:40 +0000 (17:00 +1000)
Other methods in this file suggest this is the correct way to retrieve
the engine pointer.

Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c

index 1dd482e9da7708f85d379d7dd4fc3853e298119c..9707870a58c9d3fd4b1c162d7d6416fc0b5df49a 100644 (file)
@@ -236,7 +236,7 @@ static int
 gf100_gr_set_shader_exceptions(struct nvkm_object *object, u32 mthd,
                               void *pdata, u32 size)
 {
-       struct gf100_gr_priv *priv = (void *)nv_engine(object);
+       struct gf100_gr_priv *priv = (void *)object->engine;
        if (size >= sizeof(u32)) {
                u32 data = *(u32 *)pdata ? 0xffffffff : 0x00000000;
                nv_wr32(priv, 0x419e44, data);