dmaengine: pl330: use the same attributes when freeing pl330->mcode_cpu
authorFuqian Huang <huangfq.daxian@gmail.com>
Fri, 26 Jul 2019 10:59:47 +0000 (18:59 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 8 Aug 2019 13:19:43 +0000 (18:49 +0530)
commitd1b622f68daf6c9f1abed360428e5a8f22063f99
tree39eb7514ead9da50026dc75b36b4c1d76182b8a2
parent057b05d5ac4745e7999656223bc6426c0129ba86
dmaengine: pl330: use the same attributes when freeing pl330->mcode_cpu

In function dmac_alloc_resources(), pl330->mcode_cpu is allocated using
dma_alloc_attrs() but freed with dma_free_coherent().
Use the correct dma_free_attrs() function to free pl330->mcode_cpu.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Link: https://lore.kernel.org/r/20190726105947.25342-1-huangfq.daxian@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/pl330.c