aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/pxafb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 1d1e4f175e78..c176561a2222 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -54,6 +54,7 @@
54#include <linux/mutex.h> 54#include <linux/mutex.h>
55#include <linux/kthread.h> 55#include <linux/kthread.h>
56#include <linux/freezer.h> 56#include <linux/freezer.h>
57#include <linux/console.h>
57 58
58#include <mach/hardware.h> 59#include <mach/hardware.h>
59#include <asm/io.h> 60#include <asm/io.h>
@@ -730,9 +731,12 @@ static int overlayfb_open(struct fb_info *info, int user)
730 if (user == 0) 731 if (user == 0)
731 return -ENODEV; 732 return -ENODEV;
732 733
733 if (ofb->usage++ == 0) 734 if (ofb->usage++ == 0) {
734 /* unblank the base framebuffer */ 735 /* unblank the base framebuffer */
736 console_lock();
735 fb_blank(&ofb->fbi->fb, FB_BLANK_UNBLANK); 737 fb_blank(&ofb->fbi->fb, FB_BLANK_UNBLANK);
738 console_unlock();
739 }
736 740
737 return 0; 741 return 0;
738} 742}