diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/pcmcia/fmvj18x_cs.c | 4 | ||||
-rw-r--r-- | drivers/net/pcmcia/ibmtr_cs.c | 4 | ||||
-rw-r--r-- | drivers/net/pcmcia/pcnet_cs.c | 4 | ||||
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/airo_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/b43/pcmcia.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/netwave_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ray_cs.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/wavelan_cs.c | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 61726c82be46..6b9c79e4a2c0 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -574,7 +574,7 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id) | |||
574 | base = ioremap(req.Base, req.Size); | 574 | base = ioremap(req.Base, req.Size); |
575 | mem.Page = 0; | 575 | mem.Page = 0; |
576 | mem.CardOffset = 0; | 576 | mem.CardOffset = 0; |
577 | pcmcia_map_mem_page(link->win, &mem); | 577 | pcmcia_map_mem_page(link, link->win, &mem); |
578 | 578 | ||
579 | /* | 579 | /* |
580 | * MBH10304 CISTPL_FUNCE_LAN_NODE_ID format | 580 | * MBH10304 CISTPL_FUNCE_LAN_NODE_ID format |
@@ -630,7 +630,7 @@ static int fmvj18x_setup_mfc(struct pcmcia_device *link) | |||
630 | 630 | ||
631 | mem.Page = 0; | 631 | mem.Page = 0; |
632 | mem.CardOffset = 0; | 632 | mem.CardOffset = 0; |
633 | i = pcmcia_map_mem_page(link->win, &mem); | 633 | i = pcmcia_map_mem_page(link, link->win, &mem); |
634 | if (i != 0) { | 634 | if (i != 0) { |
635 | iounmap(lp->base); | 635 | iounmap(lp->base); |
636 | lp->base = NULL; | 636 | lp->base = NULL; |
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c index 7a985ca079d7..6fc89eba9c8f 100644 --- a/drivers/net/pcmcia/ibmtr_cs.c +++ b/drivers/net/pcmcia/ibmtr_cs.c | |||
@@ -252,7 +252,7 @@ static int __devinit ibmtr_config(struct pcmcia_device *link) | |||
252 | 252 | ||
253 | mem.CardOffset = mmiobase; | 253 | mem.CardOffset = mmiobase; |
254 | mem.Page = 0; | 254 | mem.Page = 0; |
255 | ret = pcmcia_map_mem_page(link->win, &mem); | 255 | ret = pcmcia_map_mem_page(link, link->win, &mem); |
256 | if (ret) | 256 | if (ret) |
257 | goto failed; | 257 | goto failed; |
258 | ti->mmio = ioremap(req.Base, req.Size); | 258 | ti->mmio = ioremap(req.Base, req.Size); |
@@ -269,7 +269,7 @@ static int __devinit ibmtr_config(struct pcmcia_device *link) | |||
269 | 269 | ||
270 | mem.CardOffset = srambase; | 270 | mem.CardOffset = srambase; |
271 | mem.Page = 0; | 271 | mem.Page = 0; |
272 | ret = pcmcia_map_mem_page(info->sram_win_handle, &mem); | 272 | ret = pcmcia_map_mem_page(link, info->sram_win_handle, &mem); |
273 | if (ret) | 273 | if (ret) |
274 | goto failed; | 274 | goto failed; |
275 | 275 | ||
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index 4156a6c5811e..75e68946455e 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -325,7 +325,7 @@ static hw_info_t *get_hwinfo(struct pcmcia_device *link) | |||
325 | mem.Page = 0; | 325 | mem.Page = 0; |
326 | for (i = 0; i < NR_INFO; i++) { | 326 | for (i = 0; i < NR_INFO; i++) { |
327 | mem.CardOffset = hw_info[i].offset & ~(req.Size-1); | 327 | mem.CardOffset = hw_info[i].offset & ~(req.Size-1); |
328 | pcmcia_map_mem_page(link->win, &mem); | 328 | pcmcia_map_mem_page(link, link->win, &mem); |
329 | base = &virt[hw_info[i].offset & (req.Size-1)]; | 329 | base = &virt[hw_info[i].offset & (req.Size-1)]; |
330 | if ((readb(base+0) == hw_info[i].a0) && | 330 | if ((readb(base+0) == hw_info[i].a0) && |
331 | (readb(base+2) == hw_info[i].a1) && | 331 | (readb(base+2) == hw_info[i].a1) && |
@@ -1499,7 +1499,7 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg, | |||
1499 | offset = mem.CardOffset % window_size; | 1499 | offset = mem.CardOffset % window_size; |
1500 | mem.CardOffset -= offset; | 1500 | mem.CardOffset -= offset; |
1501 | mem.Page = 0; | 1501 | mem.Page = 0; |
1502 | ret = pcmcia_map_mem_page(link->win, &mem); | 1502 | ret = pcmcia_map_mem_page(link, link->win, &mem); |
1503 | if (ret) | 1503 | if (ret) |
1504 | goto failed; | 1504 | goto failed; |
1505 | 1505 | ||
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 580ec444a654..4ceaa45d7d81 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -480,7 +480,7 @@ static int mhz_mfc_config(struct pcmcia_device *link) | |||
480 | mem.CardOffset = mem.Page = 0; | 480 | mem.CardOffset = mem.Page = 0; |
481 | if (smc->manfid == MANFID_MOTOROLA) | 481 | if (smc->manfid == MANFID_MOTOROLA) |
482 | mem.CardOffset = link->conf.ConfigBase; | 482 | mem.CardOffset = link->conf.ConfigBase; |
483 | i = pcmcia_map_mem_page(link->win, &mem); | 483 | i = pcmcia_map_mem_page(link, link->win, &mem); |
484 | 484 | ||
485 | if ((i == 0) | 485 | if ((i == 0) |
486 | && (smc->manfid == MANFID_MEGAHERTZ) | 486 | && (smc->manfid == MANFID_MEGAHERTZ) |
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index fbf926539285..9bc4d6002ae0 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -932,7 +932,7 @@ xirc2ps_config(struct pcmcia_device * link) | |||
932 | local->dingo_ccr = ioremap(req.Base,0x1000) + 0x0800; | 932 | local->dingo_ccr = ioremap(req.Base,0x1000) + 0x0800; |
933 | mem.CardOffset = 0x0; | 933 | mem.CardOffset = 0x0; |
934 | mem.Page = 0; | 934 | mem.Page = 0; |
935 | if ((err = pcmcia_map_mem_page(link->win, &mem))) | 935 | if ((err = pcmcia_map_mem_page(link, link->win, &mem))) |
936 | goto config_error; | 936 | goto config_error; |
937 | 937 | ||
938 | /* Setup the CCRs; there are no infos in the CIS about the Ethernet | 938 | /* Setup the CCRs; there are no infos in the CIS about the Ethernet |
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 | ||