diff options
author | Magnus Damm <damm@opensource.se> | 2006-12-13 05:46:43 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2009-11-28 12:02:13 -0500 |
commit | 868575d1e87ff2091800aea816972ddb46de60d5 (patch) | |
tree | 95c50968098815dfe066e960922c4be3b003b27f | |
parent | f5560da549ea2e32dd41e36548c0e7dee3d4aabb (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>
-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 | 5 | ||||
-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 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 3 |
19 files changed, 29 insertions, 25 deletions
diff --git a/drivers/char/pcmcia/ipwireless/main.c b/drivers/char/pcmcia/ipwireless/main.c index 91ca23d2b042..10af1c0dc368 100644 --- a/drivers/char/pcmcia/ipwireless/main.c +++ b/drivers/char/pcmcia/ipwireless/main.c | |||
@@ -125,7 +125,7 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, | |||
125 | memreq_common_memory.CardOffset = cfg->mem.win[0].card_addr; | 125 | memreq_common_memory.CardOffset = cfg->mem.win[0].card_addr; |
126 | memreq_common_memory.Page = 0; | 126 | memreq_common_memory.Page = 0; |
127 | 127 | ||
128 | ret = pcmcia_map_mem_page(ipw->handle_common_memory, | 128 | ret = pcmcia_map_mem_page(p_dev, ipw->handle_common_memory, |
129 | &memreq_common_memory); | 129 | &memreq_common_memory); |
130 | 130 | ||
131 | if (ret != 0) | 131 | if (ret != 0) |
@@ -154,7 +154,7 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, | |||
154 | memreq_attr_memory.CardOffset = 0; | 154 | memreq_attr_memory.CardOffset = 0; |
155 | memreq_attr_memory.Page = 0; | 155 | memreq_attr_memory.Page = 0; |
156 | 156 | ||
157 | ret = pcmcia_map_mem_page(ipw->handle_attr_memory, | 157 | ret = pcmcia_map_mem_page(p_dev, ipw->handle_attr_memory, |
158 | &memreq_attr_memory); | 158 | &memreq_attr_memory); |
159 | 159 | ||
160 | if (ret != 0) | 160 | if (ret != 0) |
diff --git a/drivers/isdn/hisax/sedlbauer_cs.c b/drivers/isdn/hisax/sedlbauer_cs.c index 33d7530527c7..598e17a551b7 100644 --- a/drivers/isdn/hisax/sedlbauer_cs.c +++ b/drivers/isdn/hisax/sedlbauer_cs.c | |||
@@ -276,7 +276,7 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev, | |||
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; |
279 | if (pcmcia_map_mem_page(p_dev->win, &map) != 0) | 279 | if (pcmcia_map_mem_page(p_dev, p_dev->win, &map) != 0) |
280 | return -ENODEV; | 280 | return -ENODEV; |
281 | } | 281 | } |
282 | return 0; | 282 | return 0; |
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index 16d9985aadcd..80b9005c3736 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -118,7 +118,7 @@ static caddr_t remap_window(struct map_info *map, unsigned long to) | |||
118 | DEBUG(2, "Remapping window from 0x%8.8x to 0x%8.8x", | 118 | DEBUG(2, "Remapping window from 0x%8.8x to 0x%8.8x", |
119 | dev->offset, mrq.CardOffset); | 119 | dev->offset, mrq.CardOffset); |
120 | mrq.Page = 0; | 120 | mrq.Page = 0; |
121 | ret = pcmcia_map_mem_page(win, &mrq); | 121 | ret = pcmcia_map_mem_page(dev->p_dev, win, &mrq); |
122 | if (ret != 0) | 122 | if (ret != 0) |
123 | return NULL; | 123 | return NULL; |
124 | dev->offset = mrq.CardOffset; | 124 | dev->offset = mrq.CardOffset; |
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 | ||
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index 820a6e5868e8..b60952a3df93 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -234,9 +234,12 @@ int pcmcia_get_mem_page(window_handle_t win, memreq_t *req) | |||
234 | EXPORT_SYMBOL(pcmcia_get_mem_page); | 234 | EXPORT_SYMBOL(pcmcia_get_mem_page); |
235 | 235 | ||
236 | 236 | ||
237 | int pcmcia_map_mem_page(window_handle_t win, memreq_t *req) | 237 | int pcmcia_map_mem_page(struct pcmcia_device *p_dev, window_handle_t wh, |
238 | memreq_t *req) | ||
238 | { | 239 | { |
239 | struct pcmcia_socket *s; | 240 | struct pcmcia_socket *s; |
241 | window_handle_t win = wh; | ||
242 | |||
240 | if ((win == NULL) || (win->magic != WINDOW_MAGIC)) | 243 | if ((win == NULL) || (win->magic != WINDOW_MAGIC)) |
241 | return -EINVAL; | 244 | return -EINVAL; |
242 | s = win->sock; | 245 | s = win->sock; |
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index e32c344d7ad8..c54108fc89a1 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c | |||
@@ -1687,7 +1687,7 @@ static int nsp_cs_config_check(struct pcmcia_device *p_dev, | |||
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->win, &map) != 0) | 1690 | if (pcmcia_map_mem_page(p_dev, p_dev->win, &map) != 0) |
1691 | goto next_entry; | 1691 | goto next_entry; |
1692 | 1692 | ||
1693 | cfg_mem->data->MmioAddress = (unsigned long) ioremap_nocache(cfg_mem->req.Base, cfg_mem->req.Size); | 1693 | cfg_mem->data->MmioAddress = (unsigned long) ioremap_nocache(cfg_mem->req.Base, cfg_mem->req.Size); |
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c index e06d5b2bc336..aeb85b3ec7a7 100644 --- a/drivers/staging/comedi/drivers/ni_daq_700.c +++ b/drivers/staging/comedi/drivers/ni_daq_700.c | |||
@@ -616,7 +616,7 @@ static int dio700_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
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; |
619 | if (pcmcia_map_mem_page(p_dev->win, &map)) | 619 | if (pcmcia_map_mem_page(p_dev, p_dev->win, &map)) |
620 | return -ENODEV; | 620 | return -ENODEV; |
621 | } | 621 | } |
622 | /* If we got this far, we're cool! */ | 622 | /* If we got this far, we're cool! */ |
diff --git a/drivers/staging/comedi/drivers/ni_daq_dio24.c b/drivers/staging/comedi/drivers/ni_daq_dio24.c index 9257a4224eab..0968a67b97cb 100644 --- a/drivers/staging/comedi/drivers/ni_daq_dio24.c +++ b/drivers/staging/comedi/drivers/ni_daq_dio24.c | |||
@@ -367,7 +367,7 @@ static int dio24_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
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; |
370 | if (pcmcia_map_mem_page(p_dev->win, &map)) | 370 | if (pcmcia_map_mem_page(p_dev, p_dev->win, &map)) |
371 | return -ENODEV; | 371 | return -ENODEV; |
372 | } | 372 | } |
373 | /* If we got this far, we're cool! */ | 373 | /* If we got this far, we're cool! */ |
diff --git a/drivers/staging/comedi/drivers/ni_labpc_cs.c b/drivers/staging/comedi/drivers/ni_labpc_cs.c index 28ff4a68cab3..b4c7dfa54638 100644 --- a/drivers/staging/comedi/drivers/ni_labpc_cs.c +++ b/drivers/staging/comedi/drivers/ni_labpc_cs.c | |||
@@ -346,7 +346,7 @@ static int labpc_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
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; |
349 | if (pcmcia_map_mem_page(p_dev->win, &map)) | 349 | if (pcmcia_map_mem_page(p_dev, p_dev->win, &map)) |
350 | return -ENODEV; | 350 | return -ENODEV; |
351 | } | 351 | } |
352 | /* If we got this far, we're cool! */ | 352 | /* If we got this far, we're cool! */ |
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 40b098d7aa41..f240bfa454f8 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -204,7 +204,8 @@ int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, | |||
204 | int pcmcia_release_window(struct pcmcia_device *p_dev, window_handle_t win); | 204 | int pcmcia_release_window(struct pcmcia_device *p_dev, window_handle_t win); |
205 | 205 | ||
206 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); | 206 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); |
207 | int pcmcia_map_mem_page(window_handle_t win, memreq_t *req); | 207 | int pcmcia_map_mem_page(struct pcmcia_device *p_dev, window_handle_t win, |
208 | memreq_t *req); | ||
208 | 209 | ||
209 | int pcmcia_modify_configuration(struct pcmcia_device *p_dev, modconf_t *mod); | 210 | int pcmcia_modify_configuration(struct pcmcia_device *p_dev, modconf_t *mod); |
210 | void pcmcia_disable_device(struct pcmcia_device *p_dev); | 211 | void pcmcia_disable_device(struct pcmcia_device *p_dev); |