Subject: [PATCH 3/3] drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop()

From: Alex Deucher <[email-masked]>
Date: Mon, 3 Dec 2012 18:15:55 -0500

Upstream commit 804cc4a0ad3a896ca295f771a28c6eb36ced7903

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 <[email-masked]>
Cc: [email-masked]
---
 drivers/gpu/drm/radeon/evergreen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index 10b34b8..5528fea 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -1276,6 +1276,8 @@ void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *sav
 					break;
 				udelay(1);
 			}
+		} else {
+			save->crtc_enabled[i] = false;
 		}
 	}
 
-- 
1.8.0