From: Uwe Kleine-König Date: Tue, 22 Nov 2011 13:22:55 +0000 (+0100) Subject: serial/imx: propagate error of platform_driver_register in init routine X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f227824e84c8622e68d9fdc29e78af88a285dfdc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git serial/imx: propagate error of platform_driver_register in init routine Signed-off-by: Uwe Kleine-König Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- 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)