summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_pm.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-11-10 07:20:14 +0400
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 13:01:33 +0400
commitd2edab4acffb35a6e24259886d377774efd37e6e (patch)
tree3ac54008a2e14f530cd5261ba8e69f1292dcbef8 /drivers/gpu/drm/nouveau/nouveau_pm.c
parentd4676461a75699ec0f6d271e3fe75ee631755c6e (diff)
downloadlinux-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.c2
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);