summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev/vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev/vm.h')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/vm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/vm.h b/drivers/gpu/drm/nouveau/core/include/subdev/vm.h
index c9509039f94b..d56585f1cd8c 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/vm.h
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/vm.h
@@ -91,7 +91,7 @@ struct nouveau_vmmgr {
static inline struct nouveau_vmmgr *
nouveau_vmmgr(void *obj)
{
- return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_VM];
+ return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_VM);
}
#define nouveau_vmmgr_create(p,e,o,i,f,d) \