]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb5fc62375535c037a64f168568a7e12d3f1dc89
treea3f119761bbadfc37d0544420263f9272f5209c8
parent5a2da12b4fed10ecef2001fbea457d1aceca98e6
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