serial: fsl_lpuart: Return proper error on lpuart_serial_init error path

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Axel Lin 2013-07-22 09:12:36 +08:00 committed by Greg Kroah-Hartman
parent bc764b8fdb
commit 39c34b09f2
1 changed files with 1 additions and 1 deletions

View File

@ -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)