Commit 39c34b09 authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman

serial: fsl_lpuart: Return proper error on lpuart_serial_init error path

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bc764b8f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment