dmaengine: uniphier-xdmac: Fix type of address variables

The variables src_addr and dst_addr handle DMA addresses, so these should
be declared as dma_addr_t.

Fixes: 667b925144 ("dmaengine: uniphier-xdmac: Add UniPhier external DMA controller driver")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1639456963-10232-1-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
Kunihiko Hayashi 2021-12-14 13:42:43 +09:00 committed by Vinod Koul
parent e66d70c034
commit 105a8c5256
1 changed files with 3 additions and 2 deletions

View File

@ -131,8 +131,9 @@ uniphier_xdmac_next_desc(struct uniphier_xdmac_chan *xc)
static void uniphier_xdmac_chan_start(struct uniphier_xdmac_chan *xc, static void uniphier_xdmac_chan_start(struct uniphier_xdmac_chan *xc,
struct uniphier_xdmac_desc *xd) struct uniphier_xdmac_desc *xd)
{ {
u32 src_mode, src_addr, src_width; u32 src_mode, src_width;
u32 dst_mode, dst_addr, dst_width; u32 dst_mode, dst_width;
dma_addr_t src_addr, dst_addr;
u32 val, its, tnum; u32 val, its, tnum;
enum dma_slave_buswidth buswidth; enum dma_slave_buswidth buswidth;