Re: [PATCH 11/26] dmaengine: sf-pdma-sf-pdma: Remove redundant dev_err()/dev_err_probe()
From: Frank Li
Date: Fri Sep 04 2026 - 13:58:47 EST
On Thu, Jul 09, 2026 at 09:58:15PM +0800, Pan Chuang wrote:
> The devm_request_irq() now automatically logs detailed error messages on
> failure. This eliminates the need for driver-specific dev_err() and
> dev_err_probe() calls that previously printed generic messages.
>
> Signed-off-by: Pan Chuang <panchuang@xxxxxxxx>
> ---
> drivers/dma/sf-pdma/sf-pdma.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/dma/sf-pdma/sf-pdma.c b/drivers/dma/sf-pdma/sf-pdma.c
> index 6f79cc28703e..5e5694750c57 100644
> --- a/drivers/dma/sf-pdma/sf-pdma.c
> +++ b/drivers/dma/sf-pdma/sf-pdma.c
> @@ -411,10 +411,8 @@ static int sf_pdma_irq_init(struct platform_device *pdev, struct sf_pdma *pdma)
>
> r = devm_request_irq(&pdev->dev, irq, sf_pdma_done_isr, 0,
> dev_name(&pdev->dev), (void *)chan);
> - if (r) {
> - dev_err(&pdev->dev, "Fail to attach done ISR: %d\n", r);
> + if (r)
> return -EINVAL;
should return r, like other patch
Frank
> - }
>
> chan->txirq = irq;
>
> @@ -424,10 +422,8 @@ static int sf_pdma_irq_init(struct platform_device *pdev, struct sf_pdma *pdma)
>
> r = devm_request_irq(&pdev->dev, irq, sf_pdma_err_isr, 0,
> dev_name(&pdev->dev), (void *)chan);
> - if (r) {
> - dev_err(&pdev->dev, "Fail to attach err ISR: %d\n", r);
> + if (r)
> return -EINVAL;
> - }
>
> chan->errirq = irq;
> }
> --
> 2.34.1
>