diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-08 18:20:11 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-08 18:20:11 +0200 |
commit | 6c96895e999f5c44a95a5cad6a6e32e7bd6e28b6 (patch) | |
tree | 5f7ca73877e79431e36a96c658120ee89af39b6f /drivers/video/sm501fb.c | |
parent | matroxfb: fix regression with uninitalized fb_info->mm_lock mutex (second head) (diff) | |
download | linux-6c96895e999f5c44a95a5cad6a6e32e7bd6e28b6.tar.xz linux-6c96895e999f5c44a95a5cad6a6e32e7bd6e28b6.zip |
Revert "fb: Initialize fb_info mutexes in framebuffer_alloc()"
This reverts commit 4148df9b0f38bdd362dd91d52076926c11cbe5a9.
Let's hope that the mm_lock initialization is now correct with all
drivers, following Krzysztof's patches.
Requested-by: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/sm501fb.c')
-rw-r--r-- | drivers/video/sm501fb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/sm501fb.c b/drivers/video/sm501fb.c index 98f24f0ec00d..16d4f4c7d52b 100644 --- a/drivers/video/sm501fb.c +++ b/drivers/video/sm501fb.c @@ -1624,6 +1624,8 @@ static int __devinit sm501fb_start_one(struct sm501fb_info *info, if (!fbi) return 0; + mutex_init(&info->fb[head]->mm_lock); + ret = sm501fb_init_fb(info->fb[head], head, drvname); if (ret) { dev_err(info->dev, "cannot initialise fb %s\n", drvname); |