summaryrefslogtreecommitdiff
path: root/nvkm/include/subdev/therm.h
diff options
context:
space:
mode:
Diffstat (limited to 'nvkm/include/subdev/therm.h')
-rw-r--r--nvkm/include/subdev/therm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/include/subdev/therm.h b/nvkm/include/subdev/therm.h
index a437597dc..42f9574a0 100644
--- a/nvkm/include/subdev/therm.h
+++ b/nvkm/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) \