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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index 120d5ad99296..91626c17f97b 100644
--- a/drivers/pcmcia/rsrc_nonstatic.c
+++ b/drivers/pcmcia/rsrc_nonstatic.c
@@ -277,7 +277,9 @@ static int readable(struct pcmcia_socket *s, struct resource *res,
277 s->cis_mem.res = res; 277 s->cis_mem.res = res;
278 s->cis_virt = ioremap(res->start, s->map_size); 278 s->cis_virt = ioremap(res->start, s->map_size);
279 if (s->cis_virt) { 279 if (s->cis_virt) {
280 ret = pccard_validate_cis(s, count); 280 /* as we're only called from pcmcia.c, we're safe */
281 if (s->callback->validate)
282 ret = s->callback->validate(s, count);
281 /* invalidate mapping */ 283 /* invalidate mapping */
282 iounmap(s->cis_virt); 284 iounmap(s->cis_virt);
283 s->cis_virt = NULL; 285 s->cis_virt = NULL;