浏览代码

pxafb: only initialize the smart panel thread when dealing with a smartpanel

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Eric Miao 16 年之前
父节点
当前提交
6cc4abe43e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/video/pxafb.c

+ 3 - 0
drivers/video/pxafb.c

@@ -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)) {