diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2021-12-14 13:42:43 +0900 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-01-03 17:49:37 +0530 |
commit | 105a8c525675bb7d4d64871f9b2edf39460de881 (patch) | |
tree | dbc8828b8cf09bbd148b06d9e94ad0737f176582 | |
parent | e66d70c034dbdfe1a48863f0865ac86aaf2fef1a (diff) | |
download | linux-105a8c525675bb7d4d64871f9b2edf39460de881.tar.gz linux-105a8c525675bb7d4d64871f9b2edf39460de881.tar.bz2 linux-105a8c525675bb7d4d64871f9b2edf39460de881.zip |
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: 667b9251440b ("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>
-rw-r--r-- | drivers/dma/uniphier-xdmac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/uniphier-xdmac.c b/drivers/dma/uniphier-xdmac.c index d6b8a202474f..290836b7e1be 100644 --- a/drivers/dma/uniphier-xdmac.c +++ b/drivers/dma/uniphier-xdmac.c @@ -131,8 +131,9 @@ uniphier_xdmac_next_desc(struct uniphier_xdmac_chan *xc) static void uniphier_xdmac_chan_start(struct uniphier_xdmac_chan *xc, struct uniphier_xdmac_desc *xd) { - u32 src_mode, src_addr, src_width; - u32 dst_mode, dst_addr, dst_width; + u32 src_mode, src_width; + u32 dst_mode, dst_width; + dma_addr_t src_addr, dst_addr; u32 val, its, tnum; enum dma_slave_buswidth buswidth; |