Otherwise we hit WARN_CONSOLE_UNLOCKED in do_unblank_screen
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
 #include <linux/mutex.h>
 #include <linux/kthread.h>
 #include <linux/freezer.h>
+#include <linux/console.h>
 
 #include <mach/hardware.h>
 #include <asm/io.h>
        if (user == 0)
                return -ENODEV;
 
-       if (ofb->usage++ == 0)
+       if (ofb->usage++ == 0) {
                /* unblank the base framebuffer */
+               console_lock();
                fb_blank(&ofb->fbi->fb, FB_BLANK_UNBLANK);
+               console_unlock();
+       }
 
        return 0;
 }