diff options
Diffstat (limited to 'drivers/serial/imx.c')
-rw-r--r-- | drivers/serial/imx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 5b3933b0c997..4a54ff584700 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <linux/init.h> | 36 | #include <linux/init.h> |
37 | #include <linux/console.h> | 37 | #include <linux/console.h> |
38 | #include <linux/sysrq.h> | 38 | #include <linux/sysrq.h> |
39 | #include <linux/device.h> | 39 | #include <linux/platform_device.h> |
40 | #include <linux/tty.h> | 40 | #include <linux/tty.h> |
41 | #include <linux/tty_flip.h> | 41 | #include <linux/tty_flip.h> |
42 | #include <linux/serial_core.h> | 42 | #include <linux/serial_core.h> |
@@ -995,6 +995,7 @@ static int __init imx_serial_init(void) | |||
995 | static void __exit imx_serial_exit(void) | 995 | static void __exit imx_serial_exit(void) |
996 | { | 996 | { |
997 | uart_unregister_driver(&imx_reg); | 997 | uart_unregister_driver(&imx_reg); |
998 | driver_unregister(&serial_imx_driver); | ||
998 | } | 999 | } |
999 | 1000 | ||
1000 | module_init(imx_serial_init); | 1001 | module_init(imx_serial_init); |