]> err.no Git - linux-2.6/commit
V4L/DVB (8338): soc_camera: Move spinlocks
authorMagnus Damm <magnus.damm@gmail.com>
Fri, 11 Jul 2008 23:59:34 +0000 (20:59 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:25:21 +0000 (07:25 -0300)
commita034d1b76b173b37f9a3646aa8f50a2c14a0f3ea
tree318a5ccff6e07d0849c21a2d536ebadb96a767a7
parent092d3921195c4553a1818e698cee7a281ab361f4
V4L/DVB (8338): soc_camera: Move spinlocks

This patch moves the spinlock handling from soc_camera.c to the actual
camera host driver. The spinlock_alloc/free callbacks are replaced with
code in init_videobuf(). So far all camera host drivers implement their
own spinlock_alloc/free methods anyway, and videobuf_queue_core_init()
BUGs on a NULL spinlock argument, so, new camera host drivers will not
forget to provide a spinlock when initialising their videobuf queues.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pxa_camera.c
drivers/media/video/soc_camera.c
include/media/soc_camera.h