From a41acadc6bba79017d82d79cd19aab963205785e Mon Sep 17 00:00:00 2001 From: Inderpal Singh Date: Tue, 10 Jul 2012 08:39:17 +0530 Subject: [PATCH] Video: s3c-fb: Resume all windows commit 2a79d863ab5ea... "Add overlay support" removed the mainlined code which resumes all windows after suspend/resume. This commit restores the same code as its required that all the windows be resumed after system suspend/resume. Signed-off-by: Inderpal Singh --- drivers/video/s3c-fb.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 946df3f..67debed 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -1871,9 +1871,15 @@ static int s3c_fb_resume(struct device *dev) s3c_fb_set_rgb_timing(sfb); /* restore framebuffers */ - win = sfb->windows[2]; /* Default window is 2 */ - dev_dbg(&pdev->dev, "resuming window %d\n", win_no); - s3c_fb_set_par(win->fbinfo); + + for (win_no = 0; win_no < S3C_FB_MAX_WIN; win_no++) { + win = sfb->windows[win_no]; + if (!win) + continue; + + dev_dbg(&pdev->dev, "resuming window %d\n", win_no); + s3c_fb_set_par(win->fbinfo); + } return 0; } -- 1.7.9.5