upstream: [media] mx3-camera: locking cleanup in mx3_videobuf_queue()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Aug 2013 08:23:36 +0000 (05:23 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:51 +0000 (14:26 +0900)
commit9e4c01afb1d42b34ee22c483327d704443364315
treef34f2bae0ea4ddefb1c40d1f23baffcdb1feb858
parenteb0314ddfcd0dad98d352396cff97862cbbcef00
upstream: [media] mx3-camera: locking cleanup in mx3_videobuf_queue()

Smatch complains about the locking here because we mix spin_lock_irq()
with spin_lock_irqsave() in an unusual way.  According to Smatch, it's
not always clear if the IRQs are enabled or disabled when we return.  It
turns out this function is always called with IRQs enabled and we can
just use spin_lock_irq().
It's called from __enqueue_in_driver().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/soc_camera/mx3_camera.c