diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-11-07 00:23:14 -0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-07 08:35:46 -0800 |
commit | 144c29ed5fa361b890523358d791e6481d55e5a6 (patch) | |
tree | e10eba426b20bfde2fbac622b8328800684fe7a4 | |
parent | 4ae612a3260336872e4f858d2d226a3721ccfd89 (diff) | |
download | linux-144c29ed5fa361b890523358d791e6481d55e5a6.tar.gz linux-144c29ed5fa361b890523358d791e6481d55e5a6.tar.bz2 linux-144c29ed5fa361b890523358d791e6481d55e5a6.zip |
serial: fsl_lpuart: Remove unneeded registration message
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>
-rw-r--r-- | drivers/tty/serial/fsl_lpuart.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 73d939c0825a..4f58077b1413 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -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; |