From: Krzysztof Helt Date: Fri, 1 Jun 2007 07:47:09 +0000 (-0700) Subject: pm3fb: switching between X and fb fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0bd327ef288923f4188050bae295661ed0fbb3fb;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 616a0c08e30c..b52e883f0a52 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;