* [PATCH] serial: fsl_lpuart: Return proper error on lpuart_serial_init error path
@ 2013-07-22 1:12 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2013-07-22 1:12 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Jingchang Lu, Jiri Slaby, linux-serial
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
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 263cfaa..1fe1257 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -858,7 +858,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)
--
1.8.1.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-22 1:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22 1:12 [PATCH] serial: fsl_lpuart: Return proper error on lpuart_serial_init error path Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox