From: Stefan Agner Date: Sat, 21 Mar 2015 23:51:08 +0000 (+0100) Subject: dmaengine: ste_dma40: fix implicit conversion X-Git-Tag: omap-for-v4.2/o2_dc~23^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de6b641e2d23d116dcf6b6a67e2ee4856e3c3026;p=pandora-kernel.git dmaengine: ste_dma40: fix implicit conversion The function d40_prep_sg takes the type enum dma_transfer_direction as second last parameter. However, the memcpy calls pass DMA_NONE which is of type enum dma_data_direction. Fix this by passing the actual transfer direction DMA_MEM_TO_MEM. This does not change the actual code flow since only the transfer direction DMA_MEM_TO_DEV and DMA_DEV_TO_MEM are actually used in the function d40_prep_sg. Signed-off-by: Stefan Agner Signed-off-by: Vinod Koul --- Reading git-diff-tree failed