[PATCH v3] dmaengine: drivers: Use devm_platform_ioremap_resource()

Péter Ujfalusi peter.ujfalusi at gmail.com
Thu Nov 24 00:15:11 PST 2022



On 10/11/2022 17:25, Tudor Ambarus wrote:
> platform_get_resource() and devm_ioremap_resource() are wrapped up in the
> devm_platform_ioremap_resource() helper. Use the helper and get rid of the
> local variable for struct resource *. We now have a function call less.
> 
> Signed-off-by: Tudor Ambarus <tudor.ambarus at microchip.com>
> Acked-by: Jernej Skrabec <jernej.skrabec at gmail.com>
> ---
> v3:
> - fix errors reported-by lkp at intel.com
> - lkp at intel.com built successfully few configs, all should be good now.
> 
> v2:
> - rebase on dma/next. s3c24xx was removed, thus drop the changes for it.
> - collect Acked-by
> 
>   drivers/dma/bcm2835-dma.c                      |  4 +---
>   drivers/dma/dma-axi-dmac.c                     |  4 +---
>   drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c |  4 +---
>   drivers/dma/fsl-edma.c                         |  8 +++-----
>   drivers/dma/fsl-qdma.c                         | 10 +++-------
>   drivers/dma/idma64.c                           |  4 +---
>   drivers/dma/img-mdc-dma.c                      |  4 +---
>   drivers/dma/imx-dma.c                          |  4 +---
>   drivers/dma/imx-sdma.c                         |  4 +---
>   drivers/dma/mcf-edma.c                         |  5 +----
>   drivers/dma/mediatek/mtk-hsdma.c               |  4 +---
>   drivers/dma/mmp_pdma.c                         |  4 +---
>   drivers/dma/mmp_tdma.c                         |  4 +---
>   drivers/dma/moxart-dma.c                       |  4 +---
>   drivers/dma/mv_xor_v2.c                        |  7 ++-----
>   drivers/dma/mxs-dma.c                          |  4 +---
>   drivers/dma/nbpfaxi.c                          |  4 +---
>   drivers/dma/pxa_dma.c                          |  4 +---
>   drivers/dma/qcom/bam_dma.c                     |  4 +---
>   drivers/dma/sf-pdma/sf-pdma.c                  |  4 +---
>   drivers/dma/sh/usb-dmac.c                      |  4 +---
>   drivers/dma/stm32-dmamux.c                     |  4 +---
>   drivers/dma/stm32-mdma.c                       |  4 +---
>   drivers/dma/sun4i-dma.c                        |  4 +---
>   drivers/dma/sun6i-dma.c                        |  4 +---
>   drivers/dma/tegra210-adma.c                    |  4 +---
>   drivers/dma/ti/cppi41.c                        | 10 +++-------
>   drivers/dma/ti/omap-dma.c                      |  4 +---

For omap-dma:
Acked-by: Peter Ujfalusi <peter.ujfalusi at gmail.com>

>   drivers/dma/xilinx/zynqmp_dma.c                |  4 +---
>   29 files changed, 36 insertions(+), 100 deletions(-)
> -- 
Péter



More information about the Linux-mediatek mailing list