[PATCH v5 2/8] iio: adc: at91_adc: drop duplicate IRQ allocation error message

Abdelnasser Hussein abdelnasserhussein11 at gmail.com
Sun Nov 22 23:00:55 PST 2026


devm_request_irq() already logs an error message when it fails.  Drop the
additional dev_err_probe() wrapper and simply return the error code to
avoid reporting the same failure twice.

Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11 at gmail.com>
---
 drivers/iio/adc/at91_adc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 9ecf8ca362f5..76000486b17a 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -1074,8 +1074,7 @@ static int at91_adc_probe(struct platform_device *pdev)
 				       at91_adc_rl_interrupt, 0,
 				       pdev->dev.driver->name, idev);
 	if (ret)
-		return dev_err_probe(&pdev->dev, ret,
-				     "Failed to allocate IRQ.\n");
+		return ret;
 
 	st->clk = devm_clk_get_enabled(&pdev->dev, "adc_clk");
 	if (IS_ERR(st->clk))
-- 
2.56.0




More information about the linux-arm-kernel mailing list