[SERIAL] imx: Fix missed platform_driver_unregister
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Mon, 21 Nov 2005 17:05:21 +0000 (17:05 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 21 Nov 2005 17:05:21 +0000 (17:05 +0000)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/imx.c

index 355cd93..83c4c12 100644 (file)
@@ -994,7 +994,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);
+       platform_driver_unregister(&serial_imx_driver);
 }
 
 module_init(imx_serial_init);