Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6cc4ab...
Commit: 6cc4abe43e9362034881ad8c005f4ab8a684ae3e
Parent: 1ec26db1f8cae0aca64708e0fe1f687eab7c82e5
Author: Eric Miao <eric.miao@marvell.com>
AuthorDate: Tue Nov 11 21:47:07 2008 +0800
Committer: Eric Miao <eric.miao@marvell.com>
CommitDate: Tue Nov 11 21:47:51 2008 +0800
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>
---
drivers/video/pxafb.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 6499059..cc59c52 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)) {
--