ioremap balanced with iounmap for drivers/char/moxa.c
PATCH 3/5 ioremap balanced with iounmap for drivers/char/moxa.c
Signed-off-by Amol Lad <[email protected]>
--- moxa.c | 6 ++++++ 1 files changed, 6 insertions(+)
---
drivers/char/moxa.c +6 -0
@@ -493,6 +493,12 @@ static void __exit moxa_exit(void)if (tty_unregister_driver (moxaDriver))printk ("Couldn't unregister MOXA Intellio family serial driver\n" );put_tty_driver (moxaDriver); + +for (i =0 ; i <MAX_BOARDS ; i++) { +if (moxaBaseAddr[i]) +iounmap (moxaBaseAddr[i]); + } +if (verbose)printk ("Done\n" ); }
Ar Gwe, 2006-10-06 am 10:27 +0530, ysgrifennodd Amol Lad:
Quoted 5 lines
Signed-off-by Amol Lad <[email protected]>--- moxa.c | 6 ++++++ 1 files changed, 6 insertions(+)---
Looks ok to me
Signed-off-by Alan Cox <[email protected]>