From: Ben Skeggs Date: Thu, 10 Nov 2011 03:20:14 +0000 (+1000) Subject: drm/nouveau/pm: fix missing volt changes when boot voltage is undefined X-Git-Tag: v3.3-rc1~121^2~51^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2edab4acffb35a6e24259886d377774efd37e6e;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git drm/nouveau/pm: fix missing volt changes when boot voltage is undefined Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c index c6ebf69..1442d06 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);