diff options
Diffstat (limited to 'nvkm/include/core/engine.h')
-rw-r--r-- | nvkm/include/core/engine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nvkm/include/core/engine.h b/nvkm/include/core/engine.h index be04250a..d7ebd35e 100644 --- a/nvkm/include/core/engine.h +++ b/nvkm/include/core/engine.h @@ -30,9 +30,9 @@ nv_engine(void *obj) } static inline int -nv_engidx(struct nouveau_object *object) +nv_engidx(struct nouveau_engine *engine) { - return nv_subidx(object); + return nv_subidx(&engine->subdev); } struct nouveau_engine *nouveau_engine(void *obj, int idx); |