diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-03-24 13:34:47 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-03-26 13:56:55 +1000 |
commit | 7b60b13002446d19c3736f5505083e3d8dcc02d9 (patch) | |
tree | 7dad64ed9db82fc0abc92003b1b49d9a1d02c961 | |
parent | 2a1415fbe2f52f5c6e7c5655672ef01df71e58dc (diff) | |
download | nouveau-7b60b13002446d19c3736f5505083e3d8dcc02d9.tar.gz |
therm: check for sensor presence with requested mode, not current
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | nvkm/subdev/therm/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/subdev/therm/base.c b/nvkm/subdev/therm/base.c index 80e584a1b..fd1b4606e 100644 --- a/nvkm/subdev/therm/base.c +++ b/nvkm/subdev/therm/base.c @@ -179,7 +179,7 @@ nouveau_therm_fan_mode(struct nouveau_therm *therm, int mode) /* do not allow automatic fan management if the thermal sensor is * not available */ - if (priv->mode == NOUVEAU_THERM_CTRL_AUTO && therm->temp_get(therm) < 0) + if (mode == NOUVEAU_THERM_CTRL_AUTO && therm->temp_get(therm) < 0) return -EINVAL; if (priv->mode == mode) |