diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/pcmcia/ipwireless/main.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hisax/sedlbauer_cs.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/pcmciamtd.c | 2 | ||||
-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 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 6 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/nsp_cs.c | 2 | ||||
-rw-r--r-- | drivers/staging/comedi/drivers/ni_daq_700.c | 2 | ||||
-rw-r--r-- | drivers/staging/comedi/drivers/ni_daq_dio24.c | 2 | ||||
-rw-r--r-- | drivers/staging/comedi/drivers/ni_labpc_cs.c | 2 |
18 files changed, 26 insertions, 26 deletions
diff --git a/drivers/char/pcmcia/ipwireless/main.c b/drivers/char/pcmcia/ipwireless/main.c index 10af1c0dc368..082146a26c87 100644 --- a/drivers/char/pcmcia/ipwireless/main.c +++ b/drivers/char/pcmcia/ipwireless/main.c | |||
@@ -116,7 +116,7 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, | |||
116 | ipw->request_common_memory.Size = 0x1000; | 116 | ipw->request_common_memory.Size = 0x1000; |
117 | ipw->request_common_memory.AccessSpeed = 0; | 117 | ipw->request_common_memory.AccessSpeed = 0; |
118 | 118 | ||
119 | ret = pcmcia_request_window(&p_dev, &ipw->request_common_memory, | 119 | ret = pcmcia_request_window(p_dev, &ipw->request_common_memory, |
120 | &ipw->handle_common_memory); | 120 | &ipw->handle_common_memory); |
121 | 121 | ||
122 | if (ret != 0) | 122 | if (ret != 0) |
@@ -145,7 +145,7 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, | |||
145 | ipw->request_attr_memory.Size = 0; /* this used to be 0x1000 */ | 145 | ipw->request_attr_memory.Size = 0; /* this used to be 0x1000 */ |
146 | ipw->request_attr_memory.AccessSpeed = 0; | 146 | ipw->request_attr_memory.AccessSpeed = 0; |
147 | 147 | ||
148 | ret = pcmcia_request_window(&p_dev, &ipw->request_attr_memory, | 148 | ret = pcmcia_request_window(p_dev, &ipw->request_attr_memory, |
149 | &ipw->handle_attr_memory); | 149 | &ipw->handle_attr_memory); |
150 | 150 | ||
151 | if (ret != 0) | 151 | if (ret != 0) |
diff --git a/drivers/isdn/hisax/sedlbauer_cs.c b/drivers/isdn/hisax/sedlbauer_cs.c index 598e17a551b7..331716fc6b30 100644 --- a/drivers/isdn/hisax/sedlbauer_cs.c +++ b/drivers/isdn/hisax/sedlbauer_cs.c | |||
@@ -272,7 +272,7 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev, | |||
272 | req->Base = mem->win[0].host_addr; | 272 | req->Base = mem->win[0].host_addr; |
273 | req->Size = mem->win[0].len; | 273 | req->Size = mem->win[0].len; |
274 | req->AccessSpeed = 0; | 274 | req->AccessSpeed = 0; |
275 | if (pcmcia_request_window(&p_dev, req, &p_dev->win) != 0) | 275 | if (pcmcia_request_window(p_dev, req, &p_dev->win) != 0) |
276 | return -ENODEV; | 276 | return -ENODEV; |
277 | map.Page = 0; | 277 | map.Page = 0; |
278 | map.CardOffset = mem->win[0].card_addr; | 278 | map.CardOffset = mem->win[0].card_addr; |
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index 80b9005c3736..689d6a79ffc0 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -530,7 +530,7 @@ static int pcmciamtd_config(struct pcmcia_device *link) | |||
530 | int ret; | 530 | int ret; |
531 | DEBUG(2, "requesting window with size = %dKiB memspeed = %d", | 531 | DEBUG(2, "requesting window with size = %dKiB memspeed = %d", |
532 | req.Size >> 10, req.AccessSpeed); | 532 | req.Size >> 10, req.AccessSpeed); |
533 | ret = pcmcia_request_window(&link, &req, &link->win); | 533 | ret = pcmcia_request_window(link, &req, &link->win); |
534 | DEBUG(2, "ret = %d dev->win_size = %d", ret, dev->win_size); | 534 | DEBUG(2, "ret = %d dev->win_size = %d", ret, dev->win_size); |
535 | if(ret) { | 535 | if(ret) { |
536 | req.Size >>= 1; | 536 | req.Size >>= 1; |
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 6b9c79e4a2c0..85f7c4562707 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -567,7 +567,7 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id) | |||
567 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; | 567 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; |
568 | req.Base = 0; req.Size = 0; | 568 | req.Base = 0; req.Size = 0; |
569 | req.AccessSpeed = 0; | 569 | req.AccessSpeed = 0; |
570 | i = pcmcia_request_window(&link, &req, &link->win); | 570 | i = pcmcia_request_window(link, &req, &link->win); |
571 | if (i != 0) | 571 | if (i != 0) |
572 | return -1; | 572 | return -1; |
573 | 573 | ||
@@ -618,7 +618,7 @@ static int fmvj18x_setup_mfc(struct pcmcia_device *link) | |||
618 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; | 618 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; |
619 | req.Base = 0; req.Size = 0; | 619 | req.Base = 0; req.Size = 0; |
620 | req.AccessSpeed = 0; | 620 | req.AccessSpeed = 0; |
621 | i = pcmcia_request_window(&link, &req, &link->win); | 621 | i = pcmcia_request_window(link, &req, &link->win); |
622 | if (i != 0) | 622 | if (i != 0) |
623 | return -1; | 623 | return -1; |
624 | 624 | ||
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c index 6fc89eba9c8f..14fe5fa35d86 100644 --- a/drivers/net/pcmcia/ibmtr_cs.c +++ b/drivers/net/pcmcia/ibmtr_cs.c | |||
@@ -246,7 +246,7 @@ static int __devinit ibmtr_config(struct pcmcia_device *link) | |||
246 | req.Base = 0; | 246 | req.Base = 0; |
247 | req.Size = 0x2000; | 247 | req.Size = 0x2000; |
248 | req.AccessSpeed = 250; | 248 | req.AccessSpeed = 250; |
249 | ret = pcmcia_request_window(&link, &req, &link->win); | 249 | ret = pcmcia_request_window(link, &req, &link->win); |
250 | if (ret) | 250 | if (ret) |
251 | goto failed; | 251 | goto failed; |
252 | 252 | ||
@@ -263,7 +263,7 @@ static int __devinit ibmtr_config(struct pcmcia_device *link) | |||
263 | req.Base = 0; | 263 | req.Base = 0; |
264 | req.Size = sramsize * 1024; | 264 | req.Size = sramsize * 1024; |
265 | req.AccessSpeed = 250; | 265 | req.AccessSpeed = 250; |
266 | ret = pcmcia_request_window(&link, &req, &info->sram_win_handle); | 266 | ret = pcmcia_request_window(link, &req, &info->sram_win_handle); |
267 | if (ret) | 267 | if (ret) |
268 | goto failed; | 268 | goto failed; |
269 | 269 | ||
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index 518b094c9f6d..d06a0ce7cb89 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -317,7 +317,7 @@ static hw_info_t *get_hwinfo(struct pcmcia_device *link) | |||
317 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; | 317 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; |
318 | req.Base = 0; req.Size = 0; | 318 | req.Base = 0; req.Size = 0; |
319 | req.AccessSpeed = 0; | 319 | req.AccessSpeed = 0; |
320 | i = pcmcia_request_window(&link, &req, &link->win); | 320 | i = pcmcia_request_window(link, &req, &link->win); |
321 | if (i != 0) | 321 | if (i != 0) |
322 | return NULL; | 322 | return NULL; |
323 | 323 | ||
@@ -1491,7 +1491,7 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg, | |||
1491 | req.Attributes |= WIN_USE_WAIT; | 1491 | req.Attributes |= WIN_USE_WAIT; |
1492 | req.Base = 0; req.Size = window_size; | 1492 | req.Base = 0; req.Size = window_size; |
1493 | req.AccessSpeed = mem_speed; | 1493 | req.AccessSpeed = mem_speed; |
1494 | ret = pcmcia_request_window(&link, &req, &link->win); | 1494 | ret = pcmcia_request_window(link, &req, &link->win); |
1495 | if (ret) | 1495 | if (ret) |
1496 | goto failed; | 1496 | goto failed; |
1497 | 1497 | ||
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 4ceaa45d7d81..c6ca3764ab6d 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -472,7 +472,7 @@ static int mhz_mfc_config(struct pcmcia_device *link) | |||
472 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; | 472 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; |
473 | req.Base = req.Size = 0; | 473 | req.Base = req.Size = 0; |
474 | req.AccessSpeed = 0; | 474 | req.AccessSpeed = 0; |
475 | i = pcmcia_request_window(&link, &req, &link->win); | 475 | i = pcmcia_request_window(link, &req, &link->win); |
476 | if (i != 0) | 476 | if (i != 0) |
477 | return -ENODEV; | 477 | return -ENODEV; |
478 | 478 | ||
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index 9bc4d6002ae0..265852ab1a2d 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -926,7 +926,7 @@ xirc2ps_config(struct pcmcia_device * link) | |||
926 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; | 926 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; |
927 | req.Base = req.Size = 0; | 927 | req.Base = req.Size = 0; |
928 | req.AccessSpeed = 0; | 928 | req.AccessSpeed = 0; |
929 | if ((err = pcmcia_request_window(&link, &req, &link->win))) | 929 | if ((err = pcmcia_request_window(link, &req, &link->win))) |
930 | goto config_error; | 930 | goto config_error; |
931 | 931 | ||
932 | local->dingo_ccr = ioremap(req.Base,0x1000) + 0x0800; | 932 | local->dingo_ccr = ioremap(req.Base,0x1000) + 0x0800; |
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c index 2aa6978d76ca..34d775c18a31 100644 --- a/drivers/net/wireless/airo_cs.c +++ b/drivers/net/wireless/airo_cs.c | |||
@@ -257,7 +257,7 @@ static int airo_cs_config_check(struct pcmcia_device *p_dev, | |||
257 | req->Base = mem->win[0].host_addr; | 257 | req->Base = mem->win[0].host_addr; |
258 | req->Size = mem->win[0].len; | 258 | req->Size = mem->win[0].len; |
259 | req->AccessSpeed = 0; | 259 | req->AccessSpeed = 0; |
260 | if (pcmcia_request_window(&p_dev, req, &p_dev->win) != 0) | 260 | if (pcmcia_request_window(p_dev, req, &p_dev->win) != 0) |
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; |
diff --git a/drivers/net/wireless/b43/pcmcia.c b/drivers/net/wireless/b43/pcmcia.c index c0a34bbcb8d5..2588358294be 100644 --- a/drivers/net/wireless/b43/pcmcia.c +++ b/drivers/net/wireless/b43/pcmcia.c | |||
@@ -87,7 +87,7 @@ static int __devinit b43_pcmcia_probe(struct pcmcia_device *dev) | |||
87 | win.Base = 0; | 87 | win.Base = 0; |
88 | win.Size = SSB_CORE_SIZE; | 88 | win.Size = SSB_CORE_SIZE; |
89 | win.AccessSpeed = 250; | 89 | win.AccessSpeed = 250; |
90 | res = pcmcia_request_window(&dev, &win, &dev->win); | 90 | res = pcmcia_request_window(dev, &win, &dev->win); |
91 | if (res != 0) | 91 | if (res != 0) |
92 | goto err_kfree_ssb; | 92 | goto err_kfree_ssb; |
93 | 93 | ||
diff --git a/drivers/net/wireless/netwave_cs.c b/drivers/net/wireless/netwave_cs.c index 4a8c62126c55..bd4eff79bd13 100644 --- a/drivers/net/wireless/netwave_cs.c +++ b/drivers/net/wireless/netwave_cs.c | |||
@@ -759,7 +759,7 @@ static int netwave_pcmcia_config(struct pcmcia_device *link) { | |||
759 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_CM|WIN_ENABLE; | 759 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_CM|WIN_ENABLE; |
760 | req.Base = 0; req.Size = 0x8000; | 760 | req.Base = 0; req.Size = 0x8000; |
761 | req.AccessSpeed = mem_speed; | 761 | req.AccessSpeed = mem_speed; |
762 | ret = pcmcia_request_window(&link, &req, &link->win); | 762 | ret = pcmcia_request_window(link, &req, &link->win); |
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; |
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index f719ffcb3c74..66e2d10cd754 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
@@ -438,7 +438,7 @@ static int ray_config(struct pcmcia_device *link) | |||
438 | req.Base = 0; | 438 | req.Base = 0; |
439 | req.Size = 0x8000; | 439 | req.Size = 0x8000; |
440 | req.AccessSpeed = ray_mem_speed; | 440 | req.AccessSpeed = ray_mem_speed; |
441 | ret = pcmcia_request_window(&link, &req, &link->win); | 441 | ret = pcmcia_request_window(link, &req, &link->win); |
442 | if (ret) | 442 | if (ret) |
443 | goto failed; | 443 | goto failed; |
444 | mem.CardOffset = 0x0000; | 444 | mem.CardOffset = 0x0000; |
@@ -454,7 +454,7 @@ static int ray_config(struct pcmcia_device *link) | |||
454 | req.Base = 0; | 454 | req.Base = 0; |
455 | req.Size = 0x4000; | 455 | req.Size = 0x4000; |
456 | req.AccessSpeed = ray_mem_speed; | 456 | req.AccessSpeed = ray_mem_speed; |
457 | ret = pcmcia_request_window(&link, &req, &local->rmem_handle); | 457 | ret = pcmcia_request_window(link, &req, &local->rmem_handle); |
458 | if (ret) | 458 | if (ret) |
459 | goto failed; | 459 | goto failed; |
460 | mem.CardOffset = 0x8000; | 460 | mem.CardOffset = 0x8000; |
@@ -470,7 +470,7 @@ static int ray_config(struct pcmcia_device *link) | |||
470 | req.Base = 0; | 470 | req.Base = 0; |
471 | req.Size = 0x1000; | 471 | req.Size = 0x1000; |
472 | req.AccessSpeed = ray_mem_speed; | 472 | req.AccessSpeed = ray_mem_speed; |
473 | ret = pcmcia_request_window(&link, &req, &local->amem_handle); | 473 | ret = pcmcia_request_window(link, &req, &local->amem_handle); |
474 | if (ret) | 474 | if (ret) |
475 | goto failed; | 475 | goto failed; |
476 | mem.CardOffset = 0x0000; | 476 | mem.CardOffset = 0x0000; |
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c index d4df25d329d4..f8c5166fffe0 100644 --- a/drivers/net/wireless/wavelan_cs.c +++ b/drivers/net/wireless/wavelan_cs.c | |||
@@ -3876,7 +3876,7 @@ wv_pcmcia_config(struct pcmcia_device * link) | |||
3876 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; | 3876 | req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; |
3877 | req.Base = req.Size = 0; | 3877 | req.Base = req.Size = 0; |
3878 | req.AccessSpeed = mem_speed; | 3878 | req.AccessSpeed = mem_speed; |
3879 | i = pcmcia_request_window(&link, &req, &link->win); | 3879 | i = pcmcia_request_window(link, &req, &link->win); |
3880 | if (i != 0) | 3880 | if (i != 0) |
3881 | break; | 3881 | break; |
3882 | 3882 | ||
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index 50468543d607..1cf7d54fb7e2 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -752,9 +752,9 @@ EXPORT_SYMBOL(pcmcia_request_irq); | |||
752 | * Request_window() establishes a mapping between card memory space | 752 | * Request_window() establishes a mapping between card memory space |
753 | * and system memory space. | 753 | * and system memory space. |
754 | */ | 754 | */ |
755 | int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, window_handle_t *wh) | 755 | int pcmcia_request_window(struct pcmcia_device *p_dev, win_req_t *req, window_handle_t *wh) |
756 | { | 756 | { |
757 | struct pcmcia_socket *s = (*p_dev)->socket; | 757 | struct pcmcia_socket *s = p_dev->socket; |
758 | pccard_mem_map *win; | 758 | pccard_mem_map *win; |
759 | u_long align; | 759 | u_long align; |
760 | int w; | 760 | int w; |
@@ -804,7 +804,7 @@ int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, window_h | |||
804 | return -EINVAL; | 804 | return -EINVAL; |
805 | } | 805 | } |
806 | } | 806 | } |
807 | (*p_dev)->_win |= CLIENT_WIN_REQ(w); | 807 | p_dev->_win |= CLIENT_WIN_REQ(w); |
808 | 808 | ||
809 | /* Configure the socket controller */ | 809 | /* Configure the socket controller */ |
810 | win->map = w+1; | 810 | win->map = w+1; |
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index c54108fc89a1..9dfd6f510b65 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c | |||
@@ -1684,7 +1684,7 @@ static int nsp_cs_config_check(struct pcmcia_device *p_dev, | |||
1684 | if (cfg_mem->req.Size < 0x1000) | 1684 | if (cfg_mem->req.Size < 0x1000) |
1685 | cfg_mem->req.Size = 0x1000; | 1685 | cfg_mem->req.Size = 0x1000; |
1686 | cfg_mem->req.AccessSpeed = 0; | 1686 | cfg_mem->req.AccessSpeed = 0; |
1687 | if (pcmcia_request_window(&p_dev, &cfg_mem->req, &p_dev->win) != 0) | 1687 | if (pcmcia_request_window(p_dev, &cfg_mem->req, &p_dev->win) != 0) |
1688 | goto next_entry; | 1688 | goto next_entry; |
1689 | map.Page = 0; map.CardOffset = mem->win[0].card_addr; | 1689 | map.Page = 0; map.CardOffset = mem->win[0].card_addr; |
1690 | if (pcmcia_map_mem_page(p_dev, p_dev->win, &map) != 0) | 1690 | if (pcmcia_map_mem_page(p_dev, p_dev->win, &map) != 0) |
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c index aeb85b3ec7a7..7328a84ac500 100644 --- a/drivers/staging/comedi/drivers/ni_daq_700.c +++ b/drivers/staging/comedi/drivers/ni_daq_700.c | |||
@@ -612,7 +612,7 @@ static int dio700_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
612 | if (req->Size < 0x1000) | 612 | if (req->Size < 0x1000) |
613 | req->Size = 0x1000; | 613 | req->Size = 0x1000; |
614 | req->AccessSpeed = 0; | 614 | req->AccessSpeed = 0; |
615 | if (pcmcia_request_window(&p_dev, req, &p_dev->win)) | 615 | if (pcmcia_request_window(p_dev, req, &p_dev->win)) |
616 | return -ENODEV; | 616 | return -ENODEV; |
617 | map.Page = 0; | 617 | map.Page = 0; |
618 | map.CardOffset = mem->win[0].card_addr; | 618 | map.CardOffset = mem->win[0].card_addr; |
diff --git a/drivers/staging/comedi/drivers/ni_daq_dio24.c b/drivers/staging/comedi/drivers/ni_daq_dio24.c index 0968a67b97cb..505631553ef7 100644 --- a/drivers/staging/comedi/drivers/ni_daq_dio24.c +++ b/drivers/staging/comedi/drivers/ni_daq_dio24.c | |||
@@ -363,7 +363,7 @@ static int dio24_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
363 | if (req->Size < 0x1000) | 363 | if (req->Size < 0x1000) |
364 | req->Size = 0x1000; | 364 | req->Size = 0x1000; |
365 | req->AccessSpeed = 0; | 365 | req->AccessSpeed = 0; |
366 | if (pcmcia_request_window(&p_dev, req, &p_dev->win)) | 366 | if (pcmcia_request_window(p_dev, req, &p_dev->win)) |
367 | return -ENODEV; | 367 | return -ENODEV; |
368 | map.Page = 0; | 368 | map.Page = 0; |
369 | map.CardOffset = mem->win[0].card_addr; | 369 | map.CardOffset = mem->win[0].card_addr; |
diff --git a/drivers/staging/comedi/drivers/ni_labpc_cs.c b/drivers/staging/comedi/drivers/ni_labpc_cs.c index b4c7dfa54638..7fb5058ad43c 100644 --- a/drivers/staging/comedi/drivers/ni_labpc_cs.c +++ b/drivers/staging/comedi/drivers/ni_labpc_cs.c | |||
@@ -342,7 +342,7 @@ static int labpc_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
342 | if (req->Size < 0x1000) | 342 | if (req->Size < 0x1000) |
343 | req->Size = 0x1000; | 343 | req->Size = 0x1000; |
344 | req->AccessSpeed = 0; | 344 | req->AccessSpeed = 0; |
345 | if (pcmcia_request_window(&p_dev, req, &p_dev->win)) | 345 | if (pcmcia_request_window(p_dev, req, &p_dev->win)) |
346 | return -ENODEV; | 346 | return -ENODEV; |
347 | map.Page = 0; | 347 | map.Page = 0; |
348 | map.CardOffset = mem->win[0].card_addr; | 348 | map.CardOffset = mem->win[0].card_addr; |