summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/engine/graph.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-12-03 17:07:22 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-01-22 12:14:42 +1000
commit2f4a58e852d103488fc435f0c1ecbb9a86761579 (patch)
treec708086427dc2a003a3f9349f2d2ca65ed6c5e7e /drivers/gpu/drm/nouveau/core/include/engine/graph.h
parent4534a2af58087d33a7fcc4497da72bd7b69fe8d0 (diff)
drm/nouveau/subdev: always upcast through nouveau_subdev()/nouveau_engine()
Has additional safeties for one. For two, needed for an upcoming commit that removes abuse of nouveau_object.engine. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/engine/graph.h')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/engine/graph.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/engine/graph.h b/drivers/gpu/drm/nouveau/core/include/engine/graph.h
index d5055570d01b..d61dcb7d6d5f 100644
--- a/drivers/gpu/drm/nouveau/core/include/engine/graph.h
+++ b/drivers/gpu/drm/nouveau/core/include/engine/graph.h
@@ -35,7 +35,7 @@ struct nouveau_graph {
static inline struct nouveau_graph *
nouveau_graph(void *obj)
{
- return (void *)nv_device(obj)->subdev[NVDEV_ENGINE_GR];
+ return (void *)nouveau_engine(obj, NVDEV_ENGINE_GR);
}
#define nouveau_graph_create(p,e,c,y,d) \