mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
serial: mvebu-uart: 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-4-panchuang@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
651bc1d066
commit
d576012348
|
|
@ -404,29 +404,21 @@ static int mvebu_uart_startup(struct uart_port *port)
|
|||
ret = devm_request_irq(port->dev, mvuart->irq[UART_IRQ_SUM],
|
||||
mvebu_uart_isr, port->irqflags,
|
||||
dev_name(port->dev), port);
|
||||
if (ret) {
|
||||
dev_err(port->dev, "unable to request IRQ %d\n",
|
||||
mvuart->irq[UART_IRQ_SUM]);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
} else {
|
||||
/* New bindings with an IRQ for RX and TX (both UART) */
|
||||
ret = devm_request_irq(port->dev, mvuart->irq[UART_RX_IRQ],
|
||||
mvebu_uart_rx_isr, port->irqflags,
|
||||
dev_name(port->dev), port);
|
||||
if (ret) {
|
||||
dev_err(port->dev, "unable to request IRQ %d\n",
|
||||
mvuart->irq[UART_RX_IRQ]);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = devm_request_irq(port->dev, mvuart->irq[UART_TX_IRQ],
|
||||
mvebu_uart_tx_isr, port->irqflags,
|
||||
dev_name(port->dev),
|
||||
port);
|
||||
if (ret) {
|
||||
dev_err(port->dev, "unable to request IRQ %d\n",
|
||||
mvuart->irq[UART_TX_IRQ]);
|
||||
devm_free_irq(port->dev, mvuart->irq[UART_RX_IRQ],
|
||||
port);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user