carma-fpga: fix lockdep warning
authorIra Snyder <iws@ovro.caltech.edu>
Thu, 26 Jan 2012 10:59:54 +0000 (10:59 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Feb 2012 00:33:59 +0000 (11:33 +1100)
commit75ff85a81680e5779383aa6210a4f89ed76e40ec
treec327f25f2a51fc32382f0fcff4fee7c0532b6f15
parent6d45584fdc202fd30da655120412210153429104
carma-fpga: fix lockdep warning

Lockdep occasionally complains with the message:
INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected

This is caused by calling videobuf_dma_unmap() under spin_lock_irq(). To
fix the warning, we drop the lock before unmapping and freeing the
buffer.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/misc/carma/carma-fpga.c