diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-11-10 13:20:14 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-12-21 19:01:33 +1000 |
commit | d2edab4acffb35a6e24259886d377774efd37e6e (patch) | |
tree | 3ac54008a2e14f530cd5261ba8e69f1292dcbef8 /drivers/gpu/drm/nouveau/nouveau_pm.c | |
parent | d4676461a75699ec0f6d271e3fe75ee631755c6e (diff) |
drm/nouveau/pm: fix missing volt changes when boot voltage is undefined
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_pm.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c index c6ebf693ffb..1442d067367 100644 --- a/drivers/gpu/drm/nouveau/nouveau_pm.c +++ b/drivers/gpu/drm/nouveau/nouveau_pm.c @@ -117,7 +117,7 @@ nouveau_pm_perflvl_aux(struct drm_device *dev, struct nouveau_pm_level *perflvl, } if (pm->voltage.supported && pm->voltage_set) { - if (a->volt_min && b->volt_min && b->volt_min > a->volt_min) { + if (perflvl->volt_min && b->volt_min > a->volt_min) { ret = pm->voltage_set(dev, perflvl->volt_min); if (ret) { NV_ERROR(dev, "voltage set failed: %d\n", ret); |