Skip to contentSkip to conversation

serial: fsl_lpuart: Return proper error on lpuart_serial_init error path

PATCH New Axel Lin 1 participant 1 message Jul 22, 2013 TTY layer and serial drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 serial: fsl_lpuart: Return proper error on lpuart_serial_init error path

---
 drivers/tty/serial/fsl_lpuart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/fsl_lpuart.c +1 -1
index 263cfaa..1fe1257 100644
@@ -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)
Signature · 1 line
1.8.1.2