From: Axel Lin Date: Mon, 22 Jul 2013 01:12:36 +0000 (+0800) Subject: serial: fsl_lpuart: Return proper error on lpuart_serial_init error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39c34b09f2fdb56c94891d5dd7ed4341d845cde5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git serial: fsl_lpuart: Return proper error on lpuart_serial_init error path Signed-off-by: Axel Lin Signed-off-by: Greg Kroah-Hartman --- 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)