[PATCH] dmaengine: imx-sdma: Remove unused imx_dma_is_ipu() inline function

Frank Li Frank.li at oss.nxp.com
Mon Jul 27 08:07:48 PDT 2026


On Sun, Jul 26, 2026 at 01:24:24PM +0300, Vladimir Zapolskiy wrote:
> The last user of the inline helper function imx_dma_is_ipu() was removed
> by commit bfac19e239a7 ("fbdev: mx3fb: Remove the driver") a few years
> ago, and this helper also can be safely removed.
>
> Signed-off-by: Vladimir Zapolskiy <vz at kernel.org>
> ---

Reviewed-by: Frank Li <Frank.Li at nxp.com>

>  include/linux/dma/imx-dma.h | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/include/linux/dma/imx-dma.h b/include/linux/dma/imx-dma.h
> index 76a8de9ae151..16e491f63883 100644
> --- a/include/linux/dma/imx-dma.h
> +++ b/include/linux/dma/imx-dma.h
> @@ -57,11 +57,6 @@ struct imx_dma_data {
>  	int priority;
>  };
>
> -static inline int imx_dma_is_ipu(struct dma_chan *chan)
> -{
> -	return !strcmp(dev_name(chan->device->dev), "ipu-core");
> -}
> -
>  static inline int imx_dma_is_general_purpose(struct dma_chan *chan)
>  {
>  	return !strcmp(chan->device->dev->driver->name, "imx-sdma") ||
> --
> 2.51.0
>



More information about the linux-arm-kernel mailing list