Commit 8576762f authored by Russell King's avatar Russell King Committed by Russell King

[DRIVER MODEL] Add missing driver_unregister to IMX serial driver

Fix the IMX serial driver to unregister its driver structure
when it is unloaded.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e32e28ed
...@@ -995,6 +995,7 @@ static int __init imx_serial_init(void) ...@@ -995,6 +995,7 @@ static int __init imx_serial_init(void)
static void __exit imx_serial_exit(void) static void __exit imx_serial_exit(void)
{ {
uart_unregister_driver(&imx_reg); uart_unregister_driver(&imx_reg);
driver_unregister(&serial_imx_driver);
} }
module_init(imx_serial_init); module_init(imx_serial_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment