aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>2014-03-11 06:11:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-17 19:20:49 -0400
commit6c13d5d27c5ecd7a2ce7c104c7726b0d7aa7d7b5 (patch)
tree621f6e7ee5416454f11c6b718aa2acaa4d822cde /drivers/tty/serial
parent4ed94cd44039037980ce66c652b194ec21356268 (diff)
serial: sh-sci: Replace printk() by pr_*()
Make banner const while we're at it Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by: Simon Horman <horms@verge.net.au> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/sh-sci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 0cb52376f97d..60a8f7db2948 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -428,7 +428,7 @@ static int sci_probe_regmap(struct plat_sci_port *cfg)
428 cfg->regtype = SCIx_HSCIF_REGTYPE; 428 cfg->regtype = SCIx_HSCIF_REGTYPE;
429 break; 429 break;
430 default: 430 default:
431 printk(KERN_ERR "Can't probe register map for given port\n"); 431 pr_err("Can't probe register map for given port\n");
432 return -EINVAL; 432 return -EINVAL;
433 } 433 }
434 434
@@ -2389,8 +2389,7 @@ static inline int sci_probe_earlyprintk(struct platform_device *pdev)
2389 2389
2390#endif /* CONFIG_SERIAL_SH_SCI_CONSOLE */ 2390#endif /* CONFIG_SERIAL_SH_SCI_CONSOLE */
2391 2391
2392static char banner[] __initdata = 2392static const char banner[] __initconst = "SuperH (H)SCI(F) driver initialized";
2393 KERN_INFO "SuperH (H)SCI(F) driver initialized\n";
2394 2393
2395static struct uart_driver sci_uart_driver = { 2394static struct uart_driver sci_uart_driver = {
2396 .owner = THIS_MODULE, 2395 .owner = THIS_MODULE,
@@ -2616,7 +2615,7 @@ static int __init sci_init(void)
2616{ 2615{
2617 int ret; 2616 int ret;
2618 2617
2619 printk(banner); 2618 pr_info("%s\n", banner);
2620 2619
2621 ret = uart_register_driver(&sci_uart_driver); 2620 ret = uart_register_driver(&sci_uart_driver);
2622 if (likely(ret == 0)) { 2621 if (likely(ret == 0)) {