[PATCH v6 2/8] iio: adc: at91_adc: drop duplicate IRQ allocation error message
Abdelnasser Hussein
abdelnasserhussein11 at gmail.com
Thu Dec 3 09:30:06 PST 2026
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 at kernel.org>
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 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
More information about the linux-arm-kernel
mailing list