fb: Initialize fb_info mutexes in framebuffer_alloc()
authorPaul Mundt <lethal@linux-sh.org>
Sun, 5 Jul 2009 15:25:57 +0000 (00:25 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Jul 2009 21:02:50 +0000 (14:02 -0700)
commit4148df9b0f38bdd362dd91d52076926c11cbe5a9
treea3f119761bbadfc37d0544420263f9272f5209c8
parent793285fcafce4719a05e0c99fa74b188157fe7fe
fb: Initialize fb_info mutexes in framebuffer_alloc()

This way they'll be properly initialized early enough for users that may
touch them before the framebuffer has been registered.

Drivers that allocate their fb_info structure some other way (like
matrocfb's broken static allocation) need to be fixed up appropriately.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/fbmem.c
drivers/video/fbsysfs.c
drivers/video/matrox/matroxfb_base.c
drivers/video/sm501fb.c