From 39c34b09f2fdb56c94891d5dd7ed4341d845cde5 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 22 Jul 2013 09:12:36 +0800 Subject: [PATCH] serial: fsl_lpuart: Return proper error on lpuart_serial_init error path Signed-off-by: Axel Lin Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/fsl_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2