diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-07-29 12:35:47 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-09-29 11:20:22 -0400 |
commit | 7feabb6412ea23edd298c0fa90e5aa6733eb4a42 (patch) | |
tree | bfafe961aeb5449a71fbb389172b3a6c68b56e7c /drivers/net/pcmcia/pcnet_cs.c | |
parent | 37979e1546a790c44adbc7f27a85569944480ebc (diff) |
pcmcia: move config_{base,index,regs} to struct pcmcia_device
Several drivers prefer to explicitly set config_{base,index,regs},
formerly known as ConfigBase, ConfigIndex and Present. Instead of
passing these values inside config_req_t, store it in struct
pcmcia_device.
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: alsa-devel@alsa-project.org
CC: linux-serial@vger.kernel.org
CC: Jiri Kosina <jkosina@suse.cz>
CC: linux-scsi@vger.kernel.org
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> (for drivers/bluetooth)
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/pcmcia/pcnet_cs.c')
-rw-r--r-- | drivers/net/pcmcia/pcnet_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index 69135761719a..68c46751f84f 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -420,7 +420,7 @@ static hw_info_t *get_ax88190(struct pcmcia_device *link) | |||
420 | int i, j; | 420 | int i, j; |
421 | 421 | ||
422 | /* Not much of a test, but the alternatives are messy */ | 422 | /* Not much of a test, but the alternatives are messy */ |
423 | if (link->conf.ConfigBase != 0x03c0) | 423 | if (link->config_base != 0x03c0) |
424 | return NULL; | 424 | return NULL; |
425 | 425 | ||
426 | outb_p(0x01, ioaddr + EN0_DCFG); /* Set word-wide access. */ | 426 | outb_p(0x01, ioaddr + EN0_DCFG); /* Set word-wide access. */ |
@@ -564,7 +564,7 @@ static hw_info_t *pcnet_try_config(struct pcmcia_device *link, | |||
564 | 564 | ||
565 | if ((link->manf_id == MANFID_IBM) && | 565 | if ((link->manf_id == MANFID_IBM) && |
566 | (link->card_id == PRODID_IBM_HOME_AND_AWAY)) | 566 | (link->card_id == PRODID_IBM_HOME_AND_AWAY)) |
567 | link->conf.ConfigIndex |= 0x10; | 567 | link->config_index |= 0x10; |
568 | 568 | ||
569 | ret = pcmcia_request_configuration(link, &link->conf); | 569 | ret = pcmcia_request_configuration(link, &link->conf); |
570 | if (ret) | 570 | if (ret) |
@@ -581,7 +581,7 @@ static hw_info_t *pcnet_try_config(struct pcmcia_device *link, | |||
581 | } else | 581 | } else |
582 | dev->if_port = 0; | 582 | dev->if_port = 0; |
583 | 583 | ||
584 | if ((link->conf.ConfigBase == 0x03c0) && | 584 | if ((link->config_base == 0x03c0) && |
585 | (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { | 585 | (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { |
586 | dev_info(&link->dev, | 586 | dev_info(&link->dev, |
587 | "this is an AX88190 card - use axnet_cs instead.\n"); | 587 | "this is an AX88190 card - use axnet_cs instead.\n"); |