Skip to content

Commit

Permalink
serial: fsl_lpuart: Return proper error on lpuart_serial_init error path
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Axel Lin authored and Greg Kroah-Hartman committed Jul 26, 2013
1 parent bc764b8 commit 39c34b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/fsl_lpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 39c34b0

Please sign in to comment.