diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-11-22 14:22:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-26 20:10:13 -0800 |
commit | f227824e84c8622e68d9fdc29e78af88a285dfdc (patch) | |
tree | 5fe49fb7342791fe15c5d2263495112a7e10ae4f /drivers | |
parent | 514f31d19ed6d001cac37af0b4a3f61b07969d59 (diff) | |
download | linux-f227824e84c8622e68d9fdc29e78af88a285dfdc.tar.bz2 |
serial/imx: propagate error of platform_driver_register in init routine
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 163fc9021f5a..962cafa175f7 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1476,7 +1476,7 @@ static int __init imx_serial_init(void) if (ret != 0) uart_unregister_driver(&imx_reg); - return 0; + return ret; } static void __exit imx_serial_exit(void) |