mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
serial: imx: Remove redundant dev_err()
Since commit 55b48e23f5 ("genirq/devres: Add error handling in
devm_request_*_irq()"), 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>
Link: https://patch.msgid.link/20260722034342.316755-3-panchuang@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1654731536
commit
651bc1d066
|
|
@ -2602,34 +2602,23 @@ static int imx_uart_probe(struct platform_device *pdev)
|
|||
if (txirq > 0) {
|
||||
ret = devm_request_irq(&pdev->dev, rxirq, imx_uart_rxint, 0,
|
||||
dev_name(&pdev->dev), sport);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "failed to request rx irq: %d\n",
|
||||
ret);
|
||||
if (ret)
|
||||
goto err_clk;
|
||||
}
|
||||
|
||||
ret = devm_request_irq(&pdev->dev, txirq, imx_uart_txint, 0,
|
||||
dev_name(&pdev->dev), sport);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "failed to request tx irq: %d\n",
|
||||
ret);
|
||||
if (ret)
|
||||
goto err_clk;
|
||||
}
|
||||
|
||||
ret = devm_request_irq(&pdev->dev, rtsirq, imx_uart_rtsint, 0,
|
||||
dev_name(&pdev->dev), sport);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "failed to request rts irq: %d\n",
|
||||
ret);
|
||||
if (ret)
|
||||
goto err_clk;
|
||||
}
|
||||
} else {
|
||||
ret = devm_request_irq(&pdev->dev, rxirq, imx_uart_int, 0,
|
||||
dev_name(&pdev->dev), sport);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "failed to request irq: %d\n", ret);
|
||||
if (ret)
|
||||
goto err_clk;
|
||||
}
|
||||
}
|
||||
|
||||
imx_uart_ports[sport->port.line] = sport;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user