serial: fsl_lpuart: Return proper error on lpuart_serial_init error path
authorAxel Lin <axel.lin@ingics.com>
Mon, 22 Jul 2013 01:12:36 +0000 (09:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 23:01:20 +0000 (16:01 -0700)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c

index 7bc17f2..8978dc9 100644 (file)
@@ -863,7 +863,7 @@ static int __init lpuart_serial_init(void)
        if (ret)
                uart_unregister_driver(&lpuart_reg);
 
-       return 0;
+       return ret;
 }
 
 static void __exit lpuart_serial_exit(void)