diff options
author | Amol Lad <amol@verismonetworks.com> | 2006-12-06 23:35:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:30 -0500 |
commit | 41bdabbb6d951cf4a9fbfe33783749b87662b02d (patch) | |
tree | 112d43220bbad90a1243fdcc1172bb1f1c21fec6 /drivers/char/moxa.c | |
parent | 8684265412518858c48a56c2f0aa86f280978b74 (diff) |
[PATCH] ioremap balanced with iounmap for drivers/char/moxa.c
Signed-off-by: Amol Lad <amol@verismonetworks.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/moxa.c')
-rw-r--r-- | drivers/char/moxa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 2d025a9fd14d..8b316953173d 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c | |||
@@ -498,9 +498,12 @@ static void __exit moxa_exit(void) | |||
498 | printk("Couldn't unregister MOXA Intellio family serial driver\n"); | 498 | printk("Couldn't unregister MOXA Intellio family serial driver\n"); |
499 | put_tty_driver(moxaDriver); | 499 | put_tty_driver(moxaDriver); |
500 | 500 | ||
501 | for (i = 0; i < MAX_BOARDS; i++) | 501 | for (i = 0; i < MAX_BOARDS; i++) { |
502 | if (moxaBaseAddr[i]) | ||
503 | iounmap(moxaBaseAddr[i]); | ||
502 | if (moxa_boards[i].busType == MOXA_BUS_TYPE_PCI) | 504 | if (moxa_boards[i].busType == MOXA_BUS_TYPE_PCI) |
503 | pci_dev_put(moxa_boards[i].pciInfo.pdev); | 505 | pci_dev_put(moxa_boards[i].pciInfo.pdev); |
506 | } | ||
504 | 507 | ||
505 | if (verbose) | 508 | if (verbose) |
506 | printk("Done\n"); | 509 | printk("Done\n"); |