]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop()
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2012 14:11:27 +0000 (09:11 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Dec 2012 11:20:29 +0000 (11:20 +0000)
commit 804cc4a0ad3a896ca295f771a28c6eb36ced7903 upstream.

The save struct is not initialized previously so explicitly
mark the crtcs as not used when they are not in use.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/evergreen.c

index ca94e230449459c7c69698a47768126bdf7092ca..b919b11a5ced7d107d302ee1339dfdffb6429108 100644 (file)
@@ -1122,6 +1122,8 @@ void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *sav
                                        break;
                                udelay(1);
                        }
+               } else {
+                       save->crtc_enabled[i] = false;
                }
        }