Skip to content

Commit

Permalink
drm/nouveau/therm: no toggle fan control either if we can't guarantee…
Browse files Browse the repository at this point in the history
… no pwm connected

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Nov 8, 2013
1 parent 09b8d73 commit 21b1ed1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_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);
tpriv->fan = &priv->base;
Expand Down

0 comments on commit 21b1ed1

Please sign in to comment.