Commit 21b1ed10 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/therm: no toggle fan control either if we can't guarantee no pwm connected

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 09b8d73b
...@@ -97,6 +97,13 @@ nouveau_fantog_create(struct nouveau_therm *therm, struct dcb_gpio_func *func) ...@@ -97,6 +97,13 @@ nouveau_fantog_create(struct nouveau_therm *therm, struct dcb_gpio_func *func)
{ {
struct nouveau_therm_priv *tpriv = (void *)therm; struct nouveau_therm_priv *tpriv = (void *)therm;
struct nouveau_fantog_priv *priv; struct nouveau_fantog_priv *priv;
int ret;
if (therm->pwm_ctrl) {
ret = therm->pwm_ctrl(therm, func->line, false);
if (ret)
return ret;
}
priv = kzalloc(sizeof(*priv), GFP_KERNEL); priv = kzalloc(sizeof(*priv), GFP_KERNEL);
tpriv->fan = &priv->base; tpriv->fan = &priv->base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment