From: Eric Miao <eric.miao@marvell.com>
Date: Tue, 11 Nov 2008 13:47:07 +0000 (+0800)
Subject: pxafb: only initialize the smart panel thread when dealing with a smartpanel
X-Git-Tag: v2.6.28-rc7~91^2~1^2~2
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6cc4abe43e9362034881ad8c005f4ab8a684ae3e;p=linux.git
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>
---
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 64990592dc58..cc59c52e1103 100644
--- a/drivers/video/pxafb.c
+++ b/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)) {