Skip to content

Commit

Permalink
serial: fsl_lpuart: Remove unneeded registration message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Greg Kroah-Hartman committed Nov 7, 2014
1 parent 4ae612a commit 144c29e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/tty/serial/fsl_lpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 144c29e

Please sign in to comment.