dmaengine: sf-pdma: apply proper spinlock flags in sf_pdma_prep_dma_memcpy()
authorAustin Kim <austin.kim@lge.com>
Fri, 11 Jun 2021 06:53:36 +0000 (07:53 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 16 Jun 2021 10:40:00 +0000 (16:10 +0530)
commit94b4cd7c5fc0dd6858a046b00ca729fb0512b9ba
tree245d0902432f5c599a2c1c3bae6fe7315a61ef45
parentc1fc3745e7b07f3bfecf16adb6c49544393094f2
dmaengine: sf-pdma: apply proper spinlock flags in sf_pdma_prep_dma_memcpy()

The second parameter of spinlock_irq[save/restore] function is flags,
which is the last input parameter of sf_pdma_prep_dma_memcpy().

So declare local variable 'iflags' to be used as the second parameter of
spinlock_irq[save/restore] function.

Signed-off-by: Austin Kim <austin.kim@lge.com>
Link: https://lore.kernel.org/r/20210611065336.GA1121@raspberrypi
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sf-pdma/sf-pdma.c