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

From: Abdelnasser Hussein

Date: Thu Dec 03 2026 - 12:33:42 EST


Return the devm_request_irq() error directly from at91_adc_probe()
instead of reporting it again with dev_err_probe().

Reviewed-by: Joshua Crofts <crofts@xxxxxxxxxx>
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@xxxxxxxxx>
---
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 a4b1d08e8081..9e7fa4adfc40 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -1082,8 +1082,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