aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 9682ecc60e12..c4639c4e62f2 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -300,9 +300,9 @@ static int s3c_fb_set_par(struct fb_info *info)
300 /* disable the window whilst we update it */ 300 /* disable the window whilst we update it */
301 writel(0, regs + WINCON(win_no)); 301 writel(0, regs + WINCON(win_no));
302 302
303 /* use window 0 as the basis for the lcd output timings */ 303 /* use platform specified window as the basis for the lcd timings */
304 304
305 if (win_no == 0) { 305 if (win_no == sfb->pdata->default_win) {
306 clkdiv = s3c_fb_calc_pixclk(sfb, var->pixclock); 306 clkdiv = s3c_fb_calc_pixclk(sfb, var->pixclock);
307 307
308 data = sfb->pdata->vidcon0; 308 data = sfb->pdata->vidcon0;
@@ -636,7 +636,7 @@ static int s3c_fb_blank(int blank_mode, struct fb_info *info)
636 /* we're stuck with this until we can do something about overriding 636 /* we're stuck with this until we can do something about overriding
637 * the power control using the blanking event for a single fb. 637 * the power control using the blanking event for a single fb.
638 */ 638 */
639 if (index == 0) 639 if (index == sfb->pdata->default_win)
640 s3c_fb_enable(sfb, blank_mode != FB_BLANK_POWERDOWN ? 1 : 0); 640 s3c_fb_enable(sfb, blank_mode != FB_BLANK_POWERDOWN ? 1 : 0);
641 641
642 return 0; 642 return 0;