]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
drm/nouveau/pm: fix a typo related to the move to the therm subdev
authorMartin Peres <martin.peres@labri.fr>
Wed, 3 Oct 2012 22:44:19 +0000 (00:44 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 16 Oct 2012 06:28:58 +0000 (16:28 +1000)
Reported-by: Vekin on IRC
Reported-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_pm.c

index 47677e3f8d7eb2c87ca2654e93434c7ac44a2281..75314a1befc60a26cc3a34390dedfe55e6c19ff3 100644 (file)
@@ -52,7 +52,7 @@ nouveau_pm_perflvl_aux(struct drm_device *dev, struct nouveau_pm_level *perflvl,
 {
        struct nouveau_drm *drm = nouveau_drm(dev);
        struct nouveau_pm *pm = nouveau_pm(dev);
-       struct nouveau_therm *therm = nouveau_therm(drm);
+       struct nouveau_therm *therm = nouveau_therm(drm->device);
        int ret;
 
        /*XXX: not on all boards, we should control based on temperature