From: Amol Lad Date: Thu, 7 Dec 2006 04:35:21 +0000 (-0800) Subject: [PATCH] ioremap balanced with iounmap for drivers/char/moxa.c X-Git-Tag: v2.6.20-rc1~145^2^2~242 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=41bdabbb6d951cf4a9fbfe33783749b87662b02d;p=linux-2.6-omap-h63xx.git [PATCH] ioremap balanced with iounmap for drivers/char/moxa.c Signed-off-by: Amol Lad Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 2d025a9fd14..8b316953173 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c @@ -498,9 +498,12 @@ static void __exit moxa_exit(void) printk("Couldn't unregister MOXA Intellio family serial driver\n"); put_tty_driver(moxaDriver); - for (i = 0; i < MAX_BOARDS; i++) + for (i = 0; i < MAX_BOARDS; i++) { + if (moxaBaseAddr[i]) + iounmap(moxaBaseAddr[i]); if (moxa_boards[i].busType == MOXA_BUS_TYPE_PCI) pci_dev_put(moxa_boards[i].pciInfo.pdev); + } if (verbose) printk("Done\n");