diff options
author | Eric Miao <eric.miao@marvell.com> | 2008-11-11 08:47:07 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2008-11-11 08:47:51 -0500 |
commit | 6cc4abe43e9362034881ad8c005f4ab8a684ae3e (patch) | |
tree | 2d4b00966ff902cc2b05d83e4867476a4dd3af7d /drivers | |
parent | 1ec26db1f8cae0aca64708e0fe1f687eab7c82e5 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 64990592dc58..cc59c52e1103 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -804,6 +804,9 @@ static int pxafb_smart_thread(void *arg) | |||
804 | 804 | ||
805 | static int pxafb_smart_init(struct pxafb_info *fbi) | 805 | static int pxafb_smart_init(struct pxafb_info *fbi) |
806 | { | 806 | { |
807 | if (!(fbi->lccr0 | LCCR0_LCDT)) | ||
808 | return 0; | ||
809 | |||
807 | fbi->smart_thread = kthread_run(pxafb_smart_thread, fbi, | 810 | fbi->smart_thread = kthread_run(pxafb_smart_thread, fbi, |
808 | "lcd_refresh"); | 811 | "lcd_refresh"); |
809 | if (IS_ERR(fbi->smart_thread)) { | 812 | if (IS_ERR(fbi->smart_thread)) { |