Skip to content

Commit

Permalink
w100fb: fix regression with uninitalized fb_info->mm_lock mutex
Browse files Browse the repository at this point in the history
Remove redundant call to the w100fb_set_par() before w100 frambuffer is
registered.

This fixes a problem with uninitialized the fb_info->mm_lock mutex
introduced by the commit 537a1bf " 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>
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Jul 8, 2009
1 parent feaa61e commit f1b9c33
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/video/w100fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,6 @@ int __init w100fb_probe(struct platform_device *pdev)
goto out;
}

w100fb_set_par(info);

if (register_framebuffer(info) < 0) {
err = -EINVAL;
goto out;
Expand Down

0 comments on commit f1b9c33

Please sign in to comment.