aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2024-10-29 14:03:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-11-04 02:01:48 +0100
commit284a60b09001fa04af0e10f0cdb8df2791fe659b (patch)
treefd056d214ca645ae79b58b61def0e039b81f3013
parentaltera_uart: Use dev_err() to report error attaching IRQ handler (diff)
downloadwireguard-linux-284a60b09001fa04af0e10f0cdb8df2791fe659b.tar.xz
wireguard-linux-284a60b09001fa04af0e10f0cdb8df2791fe659b.zip
altera_jtaguart: Use dev_err() to report error attaching IRQ
In case of multiple Altera JTAG 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 <tklauser@distanz.ch> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20241029130307.5003-1-tklauser@distanz.ch Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/altera_jtaguart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c
index 6162108c758e..4c7bde5dd856 100644
--- a/drivers/tty/serial/altera_jtaguart.c
+++ b/drivers/tty/serial/altera_jtaguart.c
@@ -175,7 +175,7 @@ static int altera_jtaguart_startup(struct uart_port *port)
ret = request_irq(port->irq, altera_jtaguart_interrupt, 0,
DRV_NAME, port);
if (ret) {
- pr_err(DRV_NAME ": unable to attach Altera JTAG UART %d "
+ dev_err(port->dev, "unable to attach Altera JTAG UART %d "
"interrupt vector=%d\n", port->line, port->irq);
return ret;
}