forked from Minki/linux
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>
This commit is contained in:
parent
f1f2b6e497
commit
f0fd1b73b0
@ -1937,11 +1937,8 @@ static struct platform_driver serial_imx_driver = {
|
||||
|
||||
static int __init imx_serial_init(void)
|
||||
{
|
||||
int ret;
|
||||
int ret = uart_register_driver(&imx_reg);
|
||||
|
||||
pr_info("Serial: IMX driver\n");
|
||||
|
||||
ret = uart_register_driver(&imx_reg);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user