counter: stm32-timer-cnt: Remove redundant dev_err()

devm_request_irq() automatically logs detailed error messages on
failure. Remove the now-redundant driver-specific dev_err() calls.

Signed-off-by: Pan Chuang <panchuang@vivo.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Link: https://lore.kernel.org/r/20260715135030.326290-2-panchuang@vivo.com
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
This commit is contained in:
Pan Chuang 2026-07-15 21:50:28 +08:00 committed by William Breathitt Gray
parent dc59e4fea9
commit 505d48c938

View File

@ -760,11 +760,8 @@ static int stm32_timer_cnt_probe(struct platform_device *pdev)
/* All events reported through the global interrupt */
ret = devm_request_irq(&pdev->dev, ddata->irq[0], stm32_timer_cnt_isr,
0, dev_name(dev), counter);
if (ret) {
dev_err(dev, "Failed to request irq %d (err %d)\n",
ddata->irq[0], ret);
if (ret)
return ret;
}
} else {
for (i = 0; i < priv->nr_irqs; i++) {
/*
@ -776,11 +773,8 @@ static int stm32_timer_cnt_probe(struct platform_device *pdev)
ret = devm_request_irq(&pdev->dev, ddata->irq[i], stm32_timer_cnt_isr,
0, dev_name(dev), counter);
if (ret) {
dev_err(dev, "Failed to request irq %d (err %d)\n",
ddata->irq[i], ret);
if (ret)
return ret;
}
}
}