aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/rsrc_nonstatic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/rsrc_nonstatic.c')
-rw-r--r--drivers/pcmcia/rsrc_nonstatic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index 4f93889301b6..b886385f12e2 100644
--- a/drivers/pcmcia/rsrc_nonstatic.c
+++ b/drivers/pcmcia/rsrc_nonstatic.c
@@ -281,10 +281,9 @@ static int readable(struct pcmcia_socket *s, struct resource *res,
281 s->cis_virt = ioremap(res->start, s->map_size); 281 s->cis_virt = ioremap(res->start, s->map_size);
282 if (s->cis_virt) { 282 if (s->cis_virt) {
283 ret = pccard_validate_cis(s, count); 283 ret = pccard_validate_cis(s, count);
284 /* invalidate mapping and CIS cache */ 284 /* invalidate mapping */
285 iounmap(s->cis_virt); 285 iounmap(s->cis_virt);
286 s->cis_virt = NULL; 286 s->cis_virt = NULL;
287 destroy_cis_cache(s);
288 } 287 }
289 s->cis_mem.res = NULL; 288 s->cis_mem.res = NULL;
290 if ((ret != 0) || (*count == 0)) 289 if ((ret != 0) || (*count == 0))