Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix pl08x warnings

drivers/dma/amba-pl08x.c: In function 'pl08x_desc_free':
drivers/dma/amba-pl08x.c:1173:2: warning: passing argument 1 of 'dma_descriptor_unmap' from incompatible pointer type
include/linux/dmaengine.h:476:91: note: expected 'struct dma_async_tx_descriptor *' but argument is of type 'struct pl08x_txd *'

Fixes: d38a8c622a1b ("dmaengine: prepare for generic 'unmap' data")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Russell King - ARM Linux and committed by
Vinod Koul
89116bf9 5affdeea

+1 -1
+1 -1
drivers/dma/amba-pl08x.c
··· 1169 1169 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); 1170 1170 struct pl08x_dma_chan *plchan = to_pl08x_chan(vd->tx.chan); 1171 1171 1172 - dma_descriptor_unmap(txd); 1172 + dma_descriptor_unmap(&vd->tx); 1173 1173 if (!txd->done) 1174 1174 pl08x_release_mux(plchan); 1175 1175