From: Lauri Peltonen Date: Tue, 17 Feb 2015 06:55:42 +0000 (+0900) Subject: drm/nouveau/graph/nvc0: Fix engine pointer retrieval X-Git-Tag: v5.15~15919^2~6^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d951c38006bd007e1b9a6f681691141ed600ea0;p=platform%2Fkernel%2Flinux-starfive.git drm/nouveau/graph/nvc0: Fix engine pointer retrieval Other methods in this file suggest this is the correct way to retrieve the engine pointer. Signed-off-by: Lauri Peltonen Signed-off-by: Alexandre Courbot Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c index 1dd482e..9707870 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c @@ -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);