mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 01:23:00 -04:00
[PATCH] ioremap balanced with iounmap for drivers/char/moxa.c
Signed-off-by: Amol Lad <[email protected]> Acked-by: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8684265412
commit
41bdabbb6d
1 changed files with 4 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue