diff options
| author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2009-07-09 14:14:10 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-09 23:44:44 -0400 |
| commit | 016d3569bf7b21375451d91be6ee2ad4ffff5211 (patch) | |
| tree | 18259a8f7542da30049db5581cda087d1054f36a | |
| parent | afecb0d02ad5554cb59c2a30c262da200beaa002 (diff) | |
mx3fb: fix regression with uninitalized fb_info->mm_lock mutex
Remove call to the mx3fb_set_par() and the mx3fb_blank() before the
register_framebuffer().
This fixes a problem with uninitialized the fb_info->mm_lock mutex
introduced by the commit 537a1bf059f " fbdev: add mutex for fb_mmap
locking"
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | drivers/video/mx3fb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c index 567fb944bd2a..f8778cde2183 100644 --- a/drivers/video/mx3fb.c +++ b/drivers/video/mx3fb.c | |||
| @@ -1365,11 +1365,6 @@ static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan) | |||
| 1365 | init_completion(&mx3fbi->flip_cmpl); | 1365 | init_completion(&mx3fbi->flip_cmpl); |
| 1366 | disable_irq(ichan->eof_irq); | 1366 | disable_irq(ichan->eof_irq); |
| 1367 | dev_dbg(mx3fb->dev, "disabling irq %d\n", ichan->eof_irq); | 1367 | dev_dbg(mx3fb->dev, "disabling irq %d\n", ichan->eof_irq); |
| 1368 | ret = mx3fb_set_par(fbi); | ||
| 1369 | if (ret < 0) | ||
| 1370 | goto esetpar; | ||
| 1371 | |||
| 1372 | mx3fb_blank(FB_BLANK_UNBLANK, fbi); | ||
| 1373 | 1368 | ||
| 1374 | dev_info(dev, "registered, using mode %s\n", fb_mode); | 1369 | dev_info(dev, "registered, using mode %s\n", fb_mode); |
| 1375 | 1370 | ||
