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-Tag: upstream/snapshot3+hdmi~4472^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39c34b09f2fdb56c94891d5dd7ed4341d845cde5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 7bc17f2..8978dc9 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)