summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-05-11 10:29:58 +0300
committerBen Skeggs <bskeggs@redhat.com>2017-06-16 07:04:42 +0300
commit7eaf1198a9aaa9c31c9270e370088d8a79c149ab (patch)
treee24f075e88281c919a6d1c8d034b10a4123fae2d /drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
parent4dc33b12229fc540dc69b0d4aced60672bab142d (diff)
downloadlinux-7eaf1198a9aaa9c31c9270e370088d8a79c149ab.tar.xz
drm/nouveau/tmr: remove nvkm_timer_alarm_cancel()
nvkm_timer_alarm() already handles this as part of protecting against callers passing in no timeout value. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
index e2feccec25f5..f8fa43c8a7d2 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
@@ -215,7 +215,7 @@ nvkm_therm_fan_fini(struct nvkm_therm *therm, bool suspend)
{
struct nvkm_timer *tmr = therm->subdev.device->timer;
if (suspend)
- nvkm_timer_alarm_cancel(tmr, &therm->fan->alarm);
+ nvkm_timer_alarm(tmr, 0, &therm->fan->alarm);
return 0;
}