Commit 2ac661df authored by Tobias Klauser's avatar Tobias Klauser Committed by Greg Kroah-Hartman
Browse files

altera_uart: Use dev_err() to report error attaching IRQ handler



In case of multiple Altera UART ports available on the system, the error
message will contain information about the port for which attaching the
IRQ handler failed.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Reviewed-by: default avatarJiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20241029130258.4679-1-tklauser@distanz.ch


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 44059790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -307,7 +307,7 @@ static int altera_uart_startup(struct uart_port *port)
		ret = request_irq(port->irq, altera_uart_interrupt, 0,
				dev_name(port->dev), port);
		if (ret) {
			pr_err(DRV_NAME ": unable to attach Altera UART %d "
			dev_err(port->dev, "unable to attach Altera UART %d "
			       "interrupt vector=%d\n", port->line, port->irq);
			return ret;
		}