summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/imx.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-10-27 14:49:40 -0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-05 20:03:20 -0800
commitf0fd1b73b0f3589ff90582fbbb5eedc149caefab (patch)
tree9a224d5f3808e24928808d80231def01cd5f63ce /drivers/tty/serial/imx.c
parentf1f2b6e497170a6ab83aeb781688a65c25621836 (diff)
serial: imx: Remove unneeded registration message
There is no real value in displaying "Serial: IMX driver" in every boot. The uart_register_driver() can fail and even so the "Serial: IMX 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 i.MX and even though this message gets displayed. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r--drivers/tty/serial/imx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 9e8685e1061a..d2e6cf5a1ab8 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -1937,11 +1937,8 @@ static struct platform_driver serial_imx_driver = {
static int __init imx_serial_init(void)
{
- int ret;
-
- pr_info("Serial: IMX driver\n");
+ int ret = uart_register_driver(&imx_reg);
- ret = uart_register_driver(&imx_reg);
if (ret)
return ret;