Commit ddaa6037 authored by Richard Genoud's avatar Richard Genoud Committed by Greg Kroah-Hartman

tty/serial: at91: use dev_err instead of printk

For better consistency.
Signed-off-by: default avatarRichard Genoud <richard.genoud@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 723abd87
...@@ -1555,7 +1555,7 @@ static int atmel_startup(struct uart_port *port) ...@@ -1555,7 +1555,7 @@ static int atmel_startup(struct uart_port *port)
retval = request_irq(port->irq, atmel_interrupt, IRQF_SHARED, retval = request_irq(port->irq, atmel_interrupt, IRQF_SHARED,
tty ? tty->name : "atmel_serial", port); tty ? tty->name : "atmel_serial", port);
if (retval) { if (retval) {
printk("atmel_serial: atmel_startup - Can't get irq\n"); dev_err(port->dev, "atmel_startup - Can't get irq\n");
return retval; return retval;
} }
...@@ -1738,7 +1738,7 @@ static void atmel_serial_pm(struct uart_port *port, unsigned int state, ...@@ -1738,7 +1738,7 @@ static void atmel_serial_pm(struct uart_port *port, unsigned int state,
clk_disable_unprepare(atmel_port->clk); clk_disable_unprepare(atmel_port->clk);
break; break;
default: default:
printk(KERN_ERR "atmel_serial: unknown pm %d\n", state); dev_err(port->dev, "atmel_serial: unknown pm %d\n", state);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment