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:
parent
bc764b8fdb
commit
39c34b09f2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue