aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250/8250_gsc.c
diff options
context:
space:
mode:
authorPhillip Raffeck <phillip.raffeck@fau.de>2016-01-14 16:08:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-06 23:15:53 -0800
commit9f59fbf0f22f79e11cf74fc19581726e3f118d57 (patch)
treed96ef49b01ce60eeb5fe8d3567c33f2bcadd0759 /drivers/tty/serial/8250/8250_gsc.c
parenttty: serial: 8250: Fix multi-line strings (diff)
downloadlinux-dev-9f59fbf0f22f79e11cf74fc19581726e3f118d57.tar.xz
linux-dev-9f59fbf0f22f79e11cf74fc19581726e3f118d57.zip
tty: serial: 8250: Suitably replace printk
This patch replaces printk by the corresponding variant of dev_* in order to fix checkpatch warnings. If no suitable device pointer is present, the corresponding pr_* variant is used. Signed-off-by: Phillip Raffeck <phillip.raffeck@fau.de> Signed-off-by: Anton Würfel <anton.wuerfel@fau.de> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: linux-kernel@i4.cs.fau.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_gsc.c')
-rw-r--r--drivers/tty/serial/8250/8250_gsc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250_gsc.c b/drivers/tty/serial/8250/8250_gsc.c
index 2e3ea1a70d7b..b1e6ae9f1ff9 100644
--- a/drivers/tty/serial/8250/8250_gsc.c
+++ b/drivers/tty/serial/8250/8250_gsc.c
@@ -42,7 +42,7 @@ static int __init serial_init_chip(struct parisc_device *dev)
* the user what they're missing.
*/
if (parisc_parent(dev)->id.hw_type != HPHW_IOA)
- printk(KERN_INFO
+ dev_info(&dev->dev,
"Serial: device 0x%llx not configured.\n"
"Enable support for Wax, Lasi, Asp or Dino.\n",
(unsigned long long)dev->hpa.start);
@@ -66,8 +66,9 @@ static int __init serial_init_chip(struct parisc_device *dev)
err = serial8250_register_8250_port(&uart);
if (err < 0) {
- printk(KERN_WARNING
- "serial8250_register_8250_port returned error %d\n", err);
+ dev_warn(&dev->dev,
+ "serial8250_register_8250_port returned error %d\n",
+ err);
iounmap(uart.port.membase);
return err;
}