From 8576762ff5d109b841fcf4e7d3883e0cf794f3cf Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 30 Oct 2005 16:33:11 +0000 Subject: [PATCH] [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 Acked-by: Greg Kroah-Hartman --- drivers/serial/imx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index b9a1f523c9..4a54ff5847 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); -- 2.39.5