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 /drivers/net/pcmcia | |
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>
Diffstat (limited to 'drivers/net/pcmcia')
-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 |
5 files changed, 8 insertions, 8 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 |