diff options
Diffstat (limited to 'drivers/net/pcmcia/pcnet_cs.c')
-rw-r--r-- | drivers/net/pcmcia/pcnet_cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index 80ab9de1c4df..4156a6c5811e 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -337,7 +337,7 @@ static hw_info_t *get_hwinfo(struct pcmcia_device *link) | |||
337 | } | 337 | } |
338 | 338 | ||
339 | iounmap(virt); | 339 | iounmap(virt); |
340 | j = pcmcia_release_window(link->win); | 340 | j = pcmcia_release_window(link, link->win); |
341 | return (i < NR_INFO) ? hw_info+i : NULL; | 341 | return (i < NR_INFO) ? hw_info+i : NULL; |
342 | } /* get_hwinfo */ | 342 | } /* get_hwinfo */ |
343 | 343 | ||
@@ -1513,7 +1513,7 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg, | |||
1513 | pcnet_reset_8390(dev); | 1513 | pcnet_reset_8390(dev); |
1514 | if (i != (TX_PAGES<<8)) { | 1514 | if (i != (TX_PAGES<<8)) { |
1515 | iounmap(info->base); | 1515 | iounmap(info->base); |
1516 | pcmcia_release_window(link->win); | 1516 | pcmcia_release_window(link, link->win); |
1517 | info->base = NULL; link->win = NULL; | 1517 | info->base = NULL; link->win = NULL; |
1518 | goto failed; | 1518 | goto failed; |
1519 | } | 1519 | } |