Skip to content

Commit 2ac661d

Browse files
tklausergregkh
authored andcommitted
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 <[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 4405979 commit 2ac661d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/altera_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static int altera_uart_startup(struct uart_port *port)
307307
ret = request_irq(port->irq, altera_uart_interrupt, 0,
308308
dev_name(port->dev), port);
309309
if (ret) {
310-
pr_err(DRV_NAME ": unable to attach Altera UART %d "
310+
dev_err(port->dev, "unable to attach Altera UART %d "
311311
"interrupt vector=%d\n", port->line, port->irq);
312312
return ret;
313313
}

0 commit comments

Comments
 (0)