spi: spi-fsl-dspi: Fix incorrect freeing of DMA allocated buffers
authorSanchayan Maity <maitysanchayan@gmail.com>
Tue, 22 Nov 2016 07:01:32 +0000 (12:31 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2016 16:47:09 +0000 (16:47 +0000)
commit27d21e9f988e527982a7516fcf411994f498787d
tree0373e2a512c1e4f1a33c159077bbf96a76de71cd
parent9811430465fccae17862213d07eba017c149eb9c
spi: spi-fsl-dspi: Fix incorrect freeing of DMA allocated buffers

Buffers allocated with a call to dma_alloc_coherent should be
freed with dma_free_coherent instead of the currently used
devm_kfree.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c