projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbc53c1
)
drm/nouveau/therm: check for sensor presence with requested mode, not current
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 24 Mar 2014 03:34:47 +0000
(13:34 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 26 Mar 2014 04:08:22 +0000
(14:08 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/subdev/therm/base.c
b/drivers/gpu/drm/nouveau/core/subdev/therm/base.c
index
80e584a
..
fd1b460
100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
+++ b/
drivers/gpu/drm/nouveau/core/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)