OSDN Git Service

spi: atmel: Add missing annotation for atmel_spi_next_xfer_dma_submit()
authorJules Irenge <jbi.octave@gmail.com>
Wed, 29 Apr 2020 22:57:23 +0000 (23:57 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 30 Apr 2020 14:35:25 +0000 (15:35 +0100)
commitb68527dfa952b702142520724d29826b8eb29a31
tree5e710b1f4cabac1f0f020d70f4da399b66e47390
parent6eefaee4f2d366a389da0eb95e524ba82bf358c4
spi: atmel: Add missing annotation for atmel_spi_next_xfer_dma_submit()

Sparse reports a warning at atmel_spi_next_xfer_dma_submit()

warning: context imbalance in atmel_spi_next_xfer_dma_submit()
- unexpected unlock

The root cause is the missing annotation
at atmel_spi_next_xfer_dma_submit()

Add the missing __must_hold(&as->lock) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/20200429225723.31258-3-jbi.octave@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c