summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev/mc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev/mc.h')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/mc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/mc.h b/drivers/gpu/drm/nouveau/core/include/subdev/mc.h
index 568e4df..af7926f 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/mc.h
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/mc.h
@@ -14,7 +14,7 @@ struct nouveau_mc {
static inline struct nouveau_mc *
nouveau_mc(void *obj)
{
- return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_MC];
+ return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_MC);
}
extern struct nouveau_oclass *nv04_mc_oclass;
OpenPOWER on IntegriCloud