drm/nouveau/therm: Set the correct pwm_mode upon resume
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 12 Aug 2013 02:48:48 +0000 (22:48 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 4 Sep 2013 03:46:32 +0000 (13:46 +1000)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Tested-by: Martin Peres <martin.peres@labri.fr>
Tested-by: Dash Four <mr.dash.four@googlemail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/base.c

index a00a5a76e2d62b82d5717923e98e85541bb7597c..3e9d941de5537fdabc9522d3af181f067a189fa2 100644 (file)
@@ -268,7 +268,7 @@ _nouveau_therm_init(struct nouveau_object *object)
                return ret;
 
        if (priv->suspend >= 0)
-               nouveau_therm_fan_mode(therm, priv->mode);
+               nouveau_therm_fan_mode(therm, priv->suspend);
        priv->sensor.program_alarms(therm);
        return 0;
 }