summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev/therm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev/therm.h')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/therm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/therm.h b/drivers/gpu/drm/nouveau/core/include/subdev/therm.h
index a437597dcafc..42f9574a06c9 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/therm.h
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/therm.h
@@ -47,7 +47,7 @@ struct nouveau_therm {
static inline struct nouveau_therm *
nouveau_therm(void *obj)
{
- return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_THERM];
+ return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_THERM);
}
#define nouveau_therm_create(p,e,o,d) \