mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue