serial: fsl_lpuart: Remove unneeded registration message
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 7 Nov 2014 02:23:14 +0000 (00:23 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 16:35:46 +0000 (08:35 -0800)
There is no real value in displaying "serial: Freescale lpuart driver" in every
boot.

The uart_register_driver() can fail and even so the "serial: Freescale lpuart
driver" will be displayed, which is not really helpful.

This is particularly annoying when booting multi_v7_defconfig kernel on a SoC
that is not a Vybrid/Layerscape and even though this message gets displayed.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jingchang Lu <jingchang.lu@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c

index 73d939c0825a49686ec24444f7d749873a74c57d..4f58077b141349534798f4fcf49c9eee87dc12b0 100644 (file)
@@ -1896,11 +1896,8 @@ static struct platform_driver lpuart_driver = {
 
 static int __init lpuart_serial_init(void)
 {
-       int ret;
-
-       pr_info("serial: Freescale lpuart driver\n");
+       int ret = uart_register_driver(&lpuart_reg);
 
-       ret = uart_register_driver(&lpuart_reg);
        if (ret)
                return ret;