[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 355cd93a8a873aa277dbcc65bf3d4c41c5f49d0e..83c4c12165877c4e02b2449a63969dbdba05ab04 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);