[PATCH] dmaengine: drivers: Use devm_platform_ioremap_resource()

Jernej Škrabec jernej.skrabec at gmail.com
Thu Aug 25 14:25:33 PDT 2022


Dne sobota, 20. avgust 2022 ob 15:09:25 CEST je Tudor Ambarus napisal(a):
> 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>
> ---
>  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/s3c24xx-dma.c                      |  4 +---
>  drivers/dma/sf-pdma/sf-pdma.c                  |  4 +---
>  drivers/dma/sh/usb-dmac.c                      |  4 +---
>  drivers/dma/stm32-dma.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 +---

For sun4i-dma.c and sun6i-dma.c:
Acked-by: Jernej Skrabec <jernej.skrabec at gmail.com>

Best regards,
Jernej

>  drivers/dma/tegra210-adma.c                    |  4 +---
>  drivers/dma/ti/cppi41.c                        | 10 +++-------
>  drivers/dma/ti/omap-dma.c                      |  4 +---
>  drivers/dma/xilinx/zynqmp_dma.c                |  4 +---
>  31 files changed, 38 insertions(+), 106 deletions(-)






More information about the linux-arm-kernel mailing list