Skip to content

Commit

Permalink
[DRIVER MODEL] Add missing driver_unregister to IMX serial driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Russell King committed Oct 30, 2005
1 parent e32e28e commit 8576762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8576762

Please sign in to comment.