summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/fsl_lpuart.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-07-22 09:12:36 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-26 16:01:20 -0700
commit39c34b09f2fdb56c94891d5dd7ed4341d845cde5 (patch)
tree475e0d95495335468cafb813a5bc2a952bccfc81 /drivers/tty/serial/fsl_lpuart.c
parentbc764b8fdb4346cb21f624e08231267d0ea9578b (diff)
serial: fsl_lpuart: Return proper error on lpuart_serial_init error path
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/fsl_lpuart.c')
-rw-r--r--drivers/tty/serial/fsl_lpuart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index 7bc17f21062a..8978dc9a58b7 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -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)