diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev/therm.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/include/subdev/therm.h | 2 |
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 a437597..42f9574 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) \ |