aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-24 12:46:42 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-08-03 03:04:14 -0400
commitb5cb259e7fac5536c4ddf350af6a3d6cc950e47e (patch)
treefd752edd9a19ad9592fdabc87465ba17019465f6 /drivers/staging
parenta3d0d4d8dd45779b6e174a8567ffb9b485e472af (diff)
pcmcia: remove memreq_t
Page already had to be set to 0; Offset can easily be passed as parameter to pcmcia_map_mem_page. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-ide@vger.kernel.org CC: linux-usb@vger.kernel.org CC: laforge@gnumonks.org CC: linux-mtd@lists.infradead.org CC: linux-bluetooth@vger.kernel.org CC: alsa-devel@alsa-project.org CC: linux-serial@vger.kernel.org CC: Michael Buesch <mb@bu3sch.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/comedi/drivers/ni_daq_700.c6
-rw-r--r--drivers/staging/comedi/drivers/ni_daq_dio24.c6
-rw-r--r--drivers/staging/comedi/drivers/ni_labpc_cs.c6
3 files changed, 6 insertions, 12 deletions
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c
index 7e41ad93703d..abaa40b8be7e 100644
--- a/drivers/staging/comedi/drivers/ni_daq_700.c
+++ b/drivers/staging/comedi/drivers/ni_daq_700.c
@@ -556,7 +556,6 @@ static int dio700_pcmcia_config_loop(struct pcmcia_device *p_dev,
556 void *priv_data) 556 void *priv_data)
557{ 557{
558 win_req_t *req = priv_data; 558 win_req_t *req = priv_data;
559 memreq_t map;
560 559
561 if (cfg->index == 0) 560 if (cfg->index == 0)
562 return -ENODEV; 561 return -ENODEV;
@@ -602,9 +601,8 @@ static int dio700_pcmcia_config_loop(struct pcmcia_device *p_dev,
602 req->AccessSpeed = 0; 601 req->AccessSpeed = 0;
603 if (pcmcia_request_window(p_dev, req, &p_dev->win)) 602 if (pcmcia_request_window(p_dev, req, &p_dev->win))
604 return -ENODEV; 603 return -ENODEV;
605 map.Page = 0; 604 if (pcmcia_map_mem_page(p_dev, p_dev->win,
606 map.CardOffset = mem->win[0].card_addr; 605 mem->win[0].card_addr))
607 if (pcmcia_map_mem_page(p_dev, p_dev->win, &map))
608 return -ENODEV; 606 return -ENODEV;
609 } 607 }
610 /* If we got this far, we're cool! */ 608 /* 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 b2483f86c242..caccece20855 100644
--- a/drivers/staging/comedi/drivers/ni_daq_dio24.c
+++ b/drivers/staging/comedi/drivers/ni_daq_dio24.c
@@ -308,7 +308,6 @@ static int dio24_pcmcia_config_loop(struct pcmcia_device *p_dev,
308 void *priv_data) 308 void *priv_data)
309{ 309{
310 win_req_t *req = priv_data; 310 win_req_t *req = priv_data;
311 memreq_t map;
312 311
313 if (cfg->index == 0) 312 if (cfg->index == 0)
314 return -ENODEV; 313 return -ENODEV;
@@ -354,9 +353,8 @@ static int dio24_pcmcia_config_loop(struct pcmcia_device *p_dev,
354 req->AccessSpeed = 0; 353 req->AccessSpeed = 0;
355 if (pcmcia_request_window(p_dev, req, &p_dev->win)) 354 if (pcmcia_request_window(p_dev, req, &p_dev->win))
356 return -ENODEV; 355 return -ENODEV;
357 map.Page = 0; 356 if (pcmcia_map_mem_page(p_dev, p_dev->win,
358 map.CardOffset = mem->win[0].card_addr; 357 mem->win[0].card_addr))
359 if (pcmcia_map_mem_page(p_dev, p_dev->win, &map))
360 return -ENODEV; 358 return -ENODEV;
361 } 359 }
362 /* If we got this far, we're cool! */ 360 /* 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 c1444b4a5b4c..94d9f7fe6f2c 100644
--- a/drivers/staging/comedi/drivers/ni_labpc_cs.c
+++ b/drivers/staging/comedi/drivers/ni_labpc_cs.c
@@ -286,7 +286,6 @@ static int labpc_pcmcia_config_loop(struct pcmcia_device *p_dev,
286 void *priv_data) 286 void *priv_data)
287{ 287{
288 win_req_t *req = priv_data; 288 win_req_t *req = priv_data;
289 memreq_t map;
290 289
291 if (cfg->index == 0) 290 if (cfg->index == 0)
292 return -ENODEV; 291 return -ENODEV;
@@ -332,9 +331,8 @@ static int labpc_pcmcia_config_loop(struct pcmcia_device *p_dev,
332 req->AccessSpeed = 0; 331 req->AccessSpeed = 0;
333 if (pcmcia_request_window(p_dev, req, &p_dev->win)) 332 if (pcmcia_request_window(p_dev, req, &p_dev->win))
334 return -ENODEV; 333 return -ENODEV;
335 map.Page = 0; 334 if (pcmcia_map_mem_page(p_dev, p_dev->win,
336 map.CardOffset = mem->win[0].card_addr; 335 mem->win[0].card_addr))
337 if (pcmcia_map_mem_page(p_dev, p_dev->win, &map))
338 return -ENODEV; 336 return -ENODEV;
339 } 337 }
340 /* If we got this far, we're cool! */ 338 /* If we got this far, we're cool! */