From: Russell King Date: Sun, 30 Oct 2005 16:33:11 +0000 (+0000) Subject: [DRIVER MODEL] Add missing driver_unregister to IMX serial driver X-Git-Tag: v2.6.15-rc1~59^2~6^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8576762ff5d109b841fcf4e7d3883e0cf794f3cf;p=linux-2.6 [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 --- 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);