[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 <krishhna@gmail.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
9a79b22741
commit
4b300c362d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue