From: Tobias Klauser Date: Tue, 29 Oct 2024 13:02:58 +0000 (+0100) Subject: altera_uart: Use dev_err() to report error attaching IRQ handler X-Git-Tag: microblaze-v6.16~489^2~19 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=2ac661dfdfd0241919894335a1057df016f1dea3;p=linux-2.6-microblaze.git 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: Tobias Klauser Reviewed-by: Jiri Slaby Link: https://lore.kernel.org/r/20241029130258.4679-1-tklauser@distanz.ch Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/altera_uart.c b/drivers/tty/serial/altera_uart.c index 8eed2542627e..1da9cd465426 100644 --- a/drivers/tty/serial/altera_uart.c +++ b/drivers/tty/serial/altera_uart.c @@ -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; }