summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2014-02-26 17:19:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-01 01:38:39 +0100
commitddaa603739fea273ca46d71bd1ff8fa06b8b30c6 (patch)
tree7569fd45b4f6f060d8b49ad0734fa621bd4f5777 /drivers/tty
parenttty: Set correct tty name in 'active' sysfs attribute (diff)
downloadlinux-ddaa603739fea273ca46d71bd1ff8fa06b8b30c6.tar.xz
linux-ddaa603739fea273ca46d71bd1ff8fa06b8b30c6.zip
tty/serial: at91: use dev_err instead of printk
For better consistency. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/atmel_serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 3d7206fc532f..d9ad19f09310 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -1555,7 +1555,7 @@ static int atmel_startup(struct uart_port *port)
retval = request_irq(port->irq, atmel_interrupt, IRQF_SHARED,
tty ? tty->name : "atmel_serial", port);
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;
}
@@ -1738,7 +1738,7 @@ static void atmel_serial_pm(struct uart_port *port, unsigned int state,
clk_disable_unprepare(atmel_port->clk);
break;
default:
- printk(KERN_ERR "atmel_serial: unknown pm %d\n", state);
+ dev_err(port->dev, "atmel_serial: unknown pm %d\n", state);
}
}