[PATCH 05/26] dmaengine: mediatek-mtk-hsdma: Remove redundant dev_err()/dev_err_probe()
Pan Chuang
panchuang at vivo.com
Thu Jul 9 06:58:09 PDT 2026
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 at vivo.com>
---
drivers/dma/mediatek/mtk-hsdma.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/dma/mediatek/mtk-hsdma.c b/drivers/dma/mediatek/mtk-hsdma.c
index a43412ff5edd..6ee8911c12e0 100644
--- a/drivers/dma/mediatek/mtk-hsdma.c
+++ b/drivers/dma/mediatek/mtk-hsdma.c
@@ -988,11 +988,8 @@ static int mtk_hsdma_probe(struct platform_device *pdev)
err = devm_request_irq(&pdev->dev, hsdma->irq,
mtk_hsdma_irq, 0,
dev_name(&pdev->dev), hsdma);
- if (err) {
- dev_err(&pdev->dev,
- "request_irq failed with err %d\n", err);
+ if (err)
goto err_free;
- }
platform_set_drvdata(pdev, hsdma);
--
2.34.1
More information about the Linux-mediatek
mailing list