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:
committed by
Greg Kroah-Hartman
parent
bc764b8fdb
commit
39c34b09f2
@ -863,7 +863,7 @@ static int __init lpuart_serial_init(void)
|
|||||||
if (ret)
|
if (ret)
|
||||||
uart_unregister_driver(&lpuart_reg);
|
uart_unregister_driver(&lpuart_reg);
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __exit lpuart_serial_exit(void)
|
static void __exit lpuart_serial_exit(void)
|
||||||
|
Reference in New Issue
Block a user