diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-11-10 07:20:14 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-12-21 13:01:33 +0400 |
commit | d2edab4acffb35a6e24259886d377774efd37e6e (patch) | |
tree | 3ac54008a2e14f530cd5261ba8e69f1292dcbef8 /drivers/gpu/drm/nouveau/nouveau_pm.c | |
parent | d4676461a75699ec0f6d271e3fe75ee631755c6e (diff) | |
download | linux-d2edab4acffb35a6e24259886d377774efd37e6e.tar.xz |
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 c6ebf693ffb8..1442d0673671 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); |