Skip to content

Commit 284a60b

Browse files
tklausergregkh
authored andcommitted
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 <[email protected]> Reviewed-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2ac661d commit 284a60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/altera_jtaguart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static int altera_jtaguart_startup(struct uart_port *port)
175175
ret = request_irq(port->irq, altera_jtaguart_interrupt, 0,
176176
DRV_NAME, port);
177177
if (ret) {
178-
pr_err(DRV_NAME ": unable to attach Altera JTAG UART %d "
178+
dev_err(port->dev, "unable to attach Altera JTAG UART %d "
179179
"interrupt vector=%d\n", port->line, port->irq);
180180
return ret;
181181
}

0 commit comments

Comments
 (0)