spi: release lock on error path in spi_pump_messages()

We should release the lock here and enable IRQs before returning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[grant.likely: move unlock above dev_err() call]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Dan Carpenter 2012-03-10 11:57:29 +03:00 • committed by Grant Likely
commit 9af4acc096