From: Sascha Hauer Date: Tue, 17 Jul 2007 12:35:46 +0000 (+0100) Subject: [ARM] 4481/1: Fix a bug when i.MX is compiled as a module X-Git-Tag: v2.6.23-rc1~8^2^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b300c362d690c8e0788f69ed91c22a0a76f7ce2;p=linux-2.6 [ARM] 4481/1: Fix a bug when i.MX is compiled as a module Fix the unregistration order in the i.MX serial driver Signed-off-by: Sreekrishnan Venkateswaran Acked-by: Sascha Hauer Signed-off-by: Russell King --- diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index e42faa4e42..dc1967176f 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c @@ -1114,8 +1114,8 @@ static int __init imx_serial_init(void) static void __exit imx_serial_exit(void) { - uart_unregister_driver(&imx_reg); platform_driver_unregister(&serial_imx_driver); + uart_unregister_driver(&imx_reg); } module_init(imx_serial_init);