aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2006-12-13 05:46:43 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2009-11-28 12:02:13 -0500
commit868575d1e87ff2091800aea816972ddb46de60d5 (patch)
tree95c50968098815dfe066e960922c4be3b003b27f /drivers/net/wireless
parentf5560da549ea2e32dd41e36548c0e7dee3d4aabb (diff)
pcmcia: Pass struct pcmcia_device to pcmcia_map_mem_page()
No logic changes, just pass struct pcmcia_device to pcmcia_map_mem_page() [linux@dominikbrodowski.net: update to 2.6.31] CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-scsi@vger.kernel.org CC: Jiri Kosina <jkosina@suse.cz> Acked-by: Karsten Keil <keil@b1-systems.de> (for ISDN) Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/airo_cs.c2
-rw-r--r--drivers/net/wireless/b43/pcmcia.c2
-rw-r--r--drivers/net/wireless/netwave_cs.c2
-rw-r--r--drivers/net/wireless/ray_cs.c6
-rw-r--r--drivers/net/wireless/wavelan_cs.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c
index a1b84fc48afd..2aa6978d76ca 100644
--- a/drivers/net/wireless/airo_cs.c
+++ b/drivers/net/wireless/airo_cs.c
@@ -261,7 +261,7 @@ static int airo_cs_config_check(struct pcmcia_device *p_dev,
261 return -ENODEV; 261 return -ENODEV;
262 map.Page = 0; 262 map.Page = 0;
263 map.CardOffset = mem->win[0].card_addr; 263 map.CardOffset = mem->win[0].card_addr;
264 if (pcmcia_map_mem_page(p_dev->win, &map) != 0) 264 if (pcmcia_map_mem_page(p_dev, p_dev->win, &map) != 0)
265 return -ENODEV; 265 return -ENODEV;
266 } 266 }
267 /* If we got this far, we're cool! */ 267 /* If we got this far, we're cool! */
diff --git a/drivers/net/wireless/b43/pcmcia.c b/drivers/net/wireless/b43/pcmcia.c
index cd14b7e8ba80..c0a34bbcb8d5 100644
--- a/drivers/net/wireless/b43/pcmcia.c
+++ b/drivers/net/wireless/b43/pcmcia.c
@@ -93,7 +93,7 @@ static int __devinit b43_pcmcia_probe(struct pcmcia_device *dev)
93 93
94 mem.CardOffset = 0; 94 mem.CardOffset = 0;
95 mem.Page = 0; 95 mem.Page = 0;
96 res = pcmcia_map_mem_page(dev->win, &mem); 96 res = pcmcia_map_mem_page(dev, dev->win, &mem);
97 if (res != 0) 97 if (res != 0)
98 goto err_disable; 98 goto err_disable;
99 99
diff --git a/drivers/net/wireless/netwave_cs.c b/drivers/net/wireless/netwave_cs.c
index cbd85de0c601..4a8c62126c55 100644
--- a/drivers/net/wireless/netwave_cs.c
+++ b/drivers/net/wireless/netwave_cs.c
@@ -763,7 +763,7 @@ static int netwave_pcmcia_config(struct pcmcia_device *link) {
763 if (ret) 763 if (ret)
764 goto failed; 764 goto failed;
765 mem.CardOffset = 0x20000; mem.Page = 0; 765 mem.CardOffset = 0x20000; mem.Page = 0;
766 ret = pcmcia_map_mem_page(link->win, &mem); 766 ret = pcmcia_map_mem_page(link, link->win, &mem);
767 if (ret) 767 if (ret)
768 goto failed; 768 goto failed;
769 769
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index ed328750de45..f719ffcb3c74 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -443,7 +443,7 @@ static int ray_config(struct pcmcia_device *link)
443 goto failed; 443 goto failed;
444 mem.CardOffset = 0x0000; 444 mem.CardOffset = 0x0000;
445 mem.Page = 0; 445 mem.Page = 0;
446 ret = pcmcia_map_mem_page(link->win, &mem); 446 ret = pcmcia_map_mem_page(link, link->win, &mem);
447 if (ret) 447 if (ret)
448 goto failed; 448 goto failed;
449 local->sram = ioremap(req.Base, req.Size); 449 local->sram = ioremap(req.Base, req.Size);
@@ -459,7 +459,7 @@ static int ray_config(struct pcmcia_device *link)
459 goto failed; 459 goto failed;
460 mem.CardOffset = 0x8000; 460 mem.CardOffset = 0x8000;
461 mem.Page = 0; 461 mem.Page = 0;
462 ret = pcmcia_map_mem_page(local->rmem_handle, &mem); 462 ret = pcmcia_map_mem_page(link, local->rmem_handle, &mem);
463 if (ret) 463 if (ret)
464 goto failed; 464 goto failed;
465 local->rmem = ioremap(req.Base, req.Size); 465 local->rmem = ioremap(req.Base, req.Size);
@@ -475,7 +475,7 @@ static int ray_config(struct pcmcia_device *link)
475 goto failed; 475 goto failed;
476 mem.CardOffset = 0x0000; 476 mem.CardOffset = 0x0000;
477 mem.Page = 0; 477 mem.Page = 0;
478 ret = pcmcia_map_mem_page(local->amem_handle, &mem); 478 ret = pcmcia_map_mem_page(link, local->amem_handle, &mem);
479 if (ret) 479 if (ret)
480 goto failed; 480 goto failed;
481 local->amem = ioremap(req.Base, req.Size); 481 local->amem = ioremap(req.Base, req.Size);
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c
index 2fad4ac89827..d4df25d329d4 100644
--- a/drivers/net/wireless/wavelan_cs.c
+++ b/drivers/net/wireless/wavelan_cs.c
@@ -3885,7 +3885,7 @@ wv_pcmcia_config(struct pcmcia_device * link)
3885 dev->mem_end = dev->mem_start + req.Size; 3885 dev->mem_end = dev->mem_start + req.Size;
3886 3886
3887 mem.CardOffset = 0; mem.Page = 0; 3887 mem.CardOffset = 0; mem.Page = 0;
3888 i = pcmcia_map_mem_page(link->win, &mem); 3888 i = pcmcia_map_mem_page(link, link->win, &mem);
3889 if (i != 0) 3889 if (i != 0)
3890 break; 3890 break;
3891 3891