pxafb: only initialize the smart panel thread when dealing with a smartpanel
authorEric Miao <eric.miao@marvell.com>
Tue, 11 Nov 2008 13:47:07 +0000 (21:47 +0800)
committerEric Miao <eric.miao@marvell.com>
Tue, 11 Nov 2008 13:47:51 +0000 (21:47 +0800)
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
drivers/video/pxafb.c

index 64990592dc588bf3d72942a774c79f90f52b73a5..cc59c52e1103dfdd48cd161fb37a385023890b5a 100644 (file)
@@ -804,6 +804,9 @@ static int pxafb_smart_thread(void *arg)
 
 static int pxafb_smart_init(struct pxafb_info *fbi)
 {
+       if (!(fbi->lccr0 | LCCR0_LCDT))
+               return 0;
+
        fbi->smart_thread = kthread_run(pxafb_smart_thread, fbi,
                                        "lcd_refresh");
        if (IS_ERR(fbi->smart_thread)) {