aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2006-12-13 05:46:38 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2009-11-28 12:01:26 -0500
commitf5560da549ea2e32dd41e36548c0e7dee3d4aabb (patch)
tree604c41db48ba2e497857ceb2137099d2f0d96d3b /drivers/net
parent78a14e273d93dfbea9673f9b10398c538096302d (diff)
pcmcia: Pass struct pcmcia_device to pcmcia_release_window()
No logic changes, just pass struct pcmcia_device to pcmcia_release_window(). [linux@dominikbrodowski.net: update to 2.6.31] CC: netdev@vger.kernel.org CC: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/pcmcia/fmvj18x_cs.c4
-rw-r--r--drivers/net/pcmcia/ibmtr_cs.c2
-rw-r--r--drivers/net/pcmcia/pcnet_cs.c4
-rw-r--r--drivers/net/wireless/ray_cs.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c
index fdec5c333a2a..61726c82be46 100644
--- a/drivers/net/pcmcia/fmvj18x_cs.c
+++ b/drivers/net/pcmcia/fmvj18x_cs.c
@@ -599,7 +599,7 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id)
599 } 599 }
600 600
601 iounmap(base); 601 iounmap(base);
602 j = pcmcia_release_window(link->win); 602 j = pcmcia_release_window(link, link->win);
603 return (i != 0x200) ? 0 : -1; 603 return (i != 0x200) ? 0 : -1;
604 604
605} /* fmvj18x_get_hwinfo */ 605} /* fmvj18x_get_hwinfo */
@@ -666,7 +666,7 @@ static void fmvj18x_release(struct pcmcia_device *link)
666 tmp = lp->base; 666 tmp = lp->base;
667 lp->base = NULL; /* set NULL before iounmap */ 667 lp->base = NULL; /* set NULL before iounmap */
668 iounmap(tmp); 668 iounmap(tmp);
669 j = pcmcia_release_window(link->win); 669 j = pcmcia_release_window(link, link->win);
670 } 670 }
671 671
672 pcmcia_disable_device(link); 672 pcmcia_disable_device(link);
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c
index 0d914f3b2941..7a985ca079d7 100644
--- a/drivers/net/pcmcia/ibmtr_cs.c
+++ b/drivers/net/pcmcia/ibmtr_cs.c
@@ -328,7 +328,7 @@ static void ibmtr_release(struct pcmcia_device *link)
328 if (link->win) { 328 if (link->win) {
329 struct tok_info *ti = netdev_priv(dev); 329 struct tok_info *ti = netdev_priv(dev);
330 iounmap(ti->mmio); 330 iounmap(ti->mmio);
331 pcmcia_release_window(info->sram_win_handle); 331 pcmcia_release_window(link, info->sram_win_handle);
332 } 332 }
333 pcmcia_disable_device(link); 333 pcmcia_disable_device(link);
334} 334}
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 }
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 28db7914a5d1..ed328750de45 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -820,10 +820,10 @@ static void ray_release(struct pcmcia_device *link)
820 iounmap(local->rmem); 820 iounmap(local->rmem);
821 iounmap(local->amem); 821 iounmap(local->amem);
822 /* Do bother checking to see if these succeed or not */ 822 /* Do bother checking to see if these succeed or not */
823 i = pcmcia_release_window(local->amem_handle); 823 i = pcmcia_release_window(link, local->amem_handle);
824 if (i != 0) 824 if (i != 0)
825 dev_dbg(&link->dev, "ReleaseWindow(local->amem) ret = %x\n", i); 825 dev_dbg(&link->dev, "ReleaseWindow(local->amem) ret = %x\n", i);
826 i = pcmcia_release_window(local->rmem_handle); 826 i = pcmcia_release_window(link, local->rmem_handle);
827 if (i != 0) 827 if (i != 0)
828 dev_dbg(&link->dev, "ReleaseWindow(local->rmem) ret = %x\n", i); 828 dev_dbg(&link->dev, "ReleaseWindow(local->rmem) ret = %x\n", i);
829 pcmcia_disable_device(link); 829 pcmcia_disable_device(link);