dmaengine: xilinx: xdma: Use resource_size() in xdma_probe()
authorLi Zetao <lizetao1@huawei.com>
Thu, 3 Aug 2023 03:32:35 +0000 (11:32 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Oct 2023 13:57:51 +0000 (19:27 +0530)
commit90a6c030f506585f484a9804aafe29cb42b93697
tree9c94b12e9a25669a797d0fb73499cb9161376803
parenta1cb2ffe5fe59b0f5612e5e9148c5311c32f311c
dmaengine: xilinx: xdma: Use resource_size() in xdma_probe()

There is a warning reported by coccinelle:

./drivers/dma/xilinx/xdma.c:888:22-25: ERROR:
Missing resource_size with   res

Use resource_size() on resource object instead of explicit computation.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230803033235.3049137-1-lizetao1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xdma.c