Skip to content

Commit

Permalink
[ARM] 4481/1: Fix a bug when i.MX is compiled as a module
Browse files Browse the repository at this point in the history
Fix the unregistration order in the i.MX serial driver

Signed-off-by: Sreekrishnan Venkateswaran <krishhna@gmail.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Sascha Hauer authored and Russell King committed Jul 20, 2007
1 parent 9a79b22 commit 4b300c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b300c3

Please sign in to comment.