diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-11-04 18:58:27 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-11-08 00:40:02 -0500 |
commit | 21b1ed10df1797dbcd05ff9fd1175f0c7de2bb19 (patch) | |
tree | 67d92803740bb87637916c1636037457797b3f3b | |
parent | 09b8d73bd5aa4a4897d2fa603e683f09ac7e9916 (diff) |
drm/nouveau/therm: no toggle fan control either if we can't guarantee no pwm connected
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c b/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c index e601773ee475..f69dab11f720 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c | |||
@@ -97,6 +97,13 @@ nouveau_fantog_create(struct nouveau_therm *therm, struct dcb_gpio_func *func) | |||
97 | { | 97 | { |
98 | struct nouveau_therm_priv *tpriv = (void *)therm; | 98 | struct nouveau_therm_priv *tpriv = (void *)therm; |
99 | struct nouveau_fantog_priv *priv; | 99 | struct nouveau_fantog_priv *priv; |
100 | int ret; | ||
101 | |||
102 | if (therm->pwm_ctrl) { | ||
103 | ret = therm->pwm_ctrl(therm, func->line, false); | ||
104 | if (ret) | ||
105 | return ret; | ||
106 | } | ||
100 | 107 | ||
101 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); | 108 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
102 | tpriv->fan = &priv->base; | 109 | tpriv->fan = &priv->base; |