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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Nov 2012 16:47:32 +0000 (11:47 -0500)
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/evergreen.c

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