From 8576762ff5d109b841fcf4e7d3883e0cf794f3cf Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 30 Oct 2005 16:33:11 +0000 Subject: [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(+) (limited to 'drivers') 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); -- cgit v1.2.3