From d23e5d3f7943eb816026f04a8b069710313522f4 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 5 Dec 2014 12:37:19 +1000 Subject: core: object.engine is always a nouveau_engine now Signed-off-by: Ben Skeggs --- nvkm/include/core/subdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nvkm/include/core/subdev.h') diff --git a/nvkm/include/core/subdev.h b/nvkm/include/core/subdev.h index d9739aed0..68f1c419d 100644 --- a/nvkm/include/core/subdev.h +++ b/nvkm/include/core/subdev.h @@ -28,9 +28,9 @@ nv_subdev(void *obj) } static inline int -nv_subidx(struct nouveau_object *object) +nv_subidx(struct nouveau_subdev *subdev) { - return nv_hclass(nv_subdev(object)) & 0xff; + return nv_hclass(subdev) & 0xff; } struct nouveau_subdev *nouveau_subdev(void *obj, int idx); -- cgit v1.2.1