summaryrefslogtreecommitdiffstats
path: root/drivers/serial/imx.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-10-30 16:33:11 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-10-30 16:33:11 +0000
commit8576762ff5d109b841fcf4e7d3883e0cf794f3cf (patch)
treead8fc56461bc29531a2b42d71c17d1db3c909263 /drivers/serial/imx.c
parente32e28edc3d894201e15b19df627af66023aa91f (diff)
downloadkernel-crypto-8576762ff5d109b841fcf4e7d3883e0cf794f3cf.tar.gz
kernel-crypto-8576762ff5d109b841fcf4e7d3883e0cf794f3cf.tar.xz
kernel-crypto-8576762ff5d109b841fcf4e7d3883e0cf794f3cf.zip
[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: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/imx.c')
-rw-r--r--drivers/serial/imx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c
index b9a1f523c9a..4a54ff58470 100644
--- a/drivers/serial/imx.c
+++ b/drivers/serial/imx.c
@@ -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);