[DRIVER MODEL] Add missing driver_unregister to IMX serial driver
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 30 Oct 2005 16:33:11 +0000 (16:33 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 30 Oct 2005 16:33:11 +0000 (16:33 +0000)
Fix the IMX serial driver to unregister its driver structure
when it is unloaded.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/imx.c

index b9a1f523c9a86d78cea7c89f77d570412b076abf..4a54ff5847003855e7643e3f57f64eb0947bb0eb 100644 (file)
@@ -995,6 +995,7 @@ static int __init imx_serial_init(void)
 static void __exit imx_serial_exit(void)
 {
        uart_unregister_driver(&imx_reg);
+       driver_unregister(&serial_imx_driver);
 }
 
 module_init(imx_serial_init);