From: Krzysztof Helt Date: Fri, 1 Jun 2007 07:47:09 +0000 (-0700) Subject: pm3fb: switching between X and fb fix X-Git-Tag: v2.6.22-rc4~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0bd327ef288923f4188050bae295661ed0fbb3fb;p=linux-2.6-omap-h63xx.git pm3fb: switching between X and fb fix This patch correctly restores console state after switching from X. Otherwise, screen is always off after switching from X. Signed-off-by: Krzysztof Helt Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c index 616a0c08e30..b52e883f0a5 100644 --- a/drivers/video/pm3fb.c +++ b/drivers/video/pm3fb.c @@ -498,7 +498,7 @@ static int pm3fb_set_par(struct fb_info *info) else par->video |= PM3VideoControl_LINE_DOUBLE_OFF; - if (info->var.activate == FB_ACTIVATE_NOW) + if ((info->var.activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) par->video |= PM3VideoControl_ENABLE; else { par->video |= PM3VideoControl_DISABLE;