Commit 60bdd25e authored by Randy Dunlap's avatar Randy Dunlap Committed by Jeff Garzik

[PATCH] dgrs: add missing iounmaps

[resend]


Insert missing iounmap's.

From: Leana Ogasawara <ogasawara@osdl.org>
parent 29494a46
...@@ -327,8 +327,10 @@ check_board_dma(struct net_device *dev0) ...@@ -327,8 +327,10 @@ check_board_dma(struct net_device *dev0)
*/ */
priv0->vplxdma[PLX_DMA0_MODE/4] = 0xFFFFFFFF; priv0->vplxdma[PLX_DMA0_MODE/4] = 0xFFFFFFFF;
x = priv0->vplxdma[PLX_DMA0_MODE/4]; x = priv0->vplxdma[PLX_DMA0_MODE/4];
if (x != 0x00001FFF) if (x != 0x00001FFF) {
iounmap((void *)priv0->vplxdma);
return (0); return (0);
}
return (1); return (1);
} }
...@@ -1020,6 +1022,8 @@ dgrs_download(struct net_device *dev0) ...@@ -1020,6 +1022,8 @@ dgrs_download(struct net_device *dev0)
if (!is) if (!is)
{ {
printk("%s: Illegal IRQ %d\n", dev0->name, dev0->irq); printk("%s: Illegal IRQ %d\n", dev0->name, dev0->irq);
iounmap(priv0->vmem);
priv0->vmem = NULL;
return -ENXIO; return -ENXIO;
} }
OUTB(dev0->base_addr + ES4H_AS_31_24, OUTB(dev0->base_addr + ES4H_AS_31_24,
...@@ -1101,6 +1105,8 @@ dgrs_download(struct net_device *dev0) ...@@ -1101,6 +1105,8 @@ dgrs_download(struct net_device *dev0)
if (priv0->bcomm->bc_status < BC_RUN) if (priv0->bcomm->bc_status < BC_RUN)
{ {
printk("%s: board not operating\n", dev0->name); printk("%s: board not operating\n", dev0->name);
iounmap(priv0->vmem);
priv0->vmem = NULL;
return -ENXIO; return -ENXIO;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment