Skip to content

Commit 105a8c5

Browse files
khayash1vinodkoul
authored andcommitted
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: 667b925 ("dmaengine: uniphier-xdmac: Add UniPhier external DMA controller driver") Signed-off-by: Kunihiko Hayashi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e66d70c commit 105a8c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/dma/uniphier-xdmac.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ uniphier_xdmac_next_desc(struct uniphier_xdmac_chan *xc)
131131
static void uniphier_xdmac_chan_start(struct uniphier_xdmac_chan *xc,
132132
struct uniphier_xdmac_desc *xd)
133133
{
134-
u32 src_mode, src_addr, src_width;
135-
u32 dst_mode, dst_addr, dst_width;
134+
u32 src_mode, src_width;
135+
u32 dst_mode, dst_width;
136+
dma_addr_t src_addr, dst_addr;
136137
u32 val, its, tnum;
137138
enum dma_slave_buswidth buswidth;
138139

0 commit comments

Comments
 (0)