aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/smc91c92_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/smc91c92_cs.c')
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index 88f503a80a8e..1b0b3230dd71 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -457,7 +457,7 @@ static int mhz_mfc_config(struct pcmcia_device *link)
457 if (pcmcia_loop_config(link, mhz_mfc_config_check, NULL)) 457 if (pcmcia_loop_config(link, mhz_mfc_config_check, NULL))
458 return -ENODEV; 458 return -ENODEV;
459 459
460 dev->base_addr = link->io.BasePort1; 460 dev->base_addr = link->resource[0]->start;
461 461
462 /* Allocate a memory window, for accessing the ISR */ 462 /* Allocate a memory window, for accessing the ISR */
463 req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; 463 req.Attributes = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
@@ -545,7 +545,7 @@ static void mot_config(struct pcmcia_device *link)
545 struct net_device *dev = link->priv; 545 struct net_device *dev = link->priv;
546 struct smc_private *smc = netdev_priv(dev); 546 struct smc_private *smc = netdev_priv(dev);
547 unsigned int ioaddr = dev->base_addr; 547 unsigned int ioaddr = dev->base_addr;
548 unsigned int iouart = link->io.BasePort2; 548 unsigned int iouart = link->resource[1]->start;
549 549
550 /* Set UART base address and force map with COR bit 1 */ 550 /* Set UART base address and force map with COR bit 1 */
551 writeb(iouart & 0xff, smc->base + MOT_UART + CISREG_IOBASE_0); 551 writeb(iouart & 0xff, smc->base + MOT_UART + CISREG_IOBASE_0);
@@ -614,7 +614,7 @@ static int smc_config(struct pcmcia_device *link)
614 link->io.NumPorts1 = 16; 614 link->io.NumPorts1 = 16;
615 i = pcmcia_loop_config(link, smc_configcheck, NULL); 615 i = pcmcia_loop_config(link, smc_configcheck, NULL);
616 if (!i) 616 if (!i)
617 dev->base_addr = link->io.BasePort1; 617 dev->base_addr = link->resource[0]->start;
618 618
619 return i; 619 return i;
620} 620}
@@ -666,7 +666,7 @@ static int osi_config(struct pcmcia_device *link)
666 link->io.NumPorts2 = 0; 666 link->io.NumPorts2 = 0;
667 i = pcmcia_request_io(link, &link->io); 667 i = pcmcia_request_io(link, &link->io);
668 } 668 }
669 dev->base_addr = link->io.BasePort1 + 0x10; 669 dev->base_addr = link->resource[0]->start + 0x10;
670 return i; 670 return i;
671} 671}
672 672
@@ -683,7 +683,7 @@ static int osi_load_firmware(struct pcmcia_device *link)
683 683
684 /* Download the Seven of Diamonds firmware */ 684 /* Download the Seven of Diamonds firmware */
685 for (i = 0; i < fw->size; i++) { 685 for (i = 0; i < fw->size; i++) {
686 outb(fw->data[i], link->io.BasePort1 + 2); 686 outb(fw->data[i], link->resource[0]->start + 2);
687 udelay(50); 687 udelay(50);
688 } 688 }
689 release_firmware(fw); 689 release_firmware(fw);
@@ -725,12 +725,12 @@ static int osi_setup(struct pcmcia_device *link, u_short manfid, u_short cardid)
725 return rc; 725 return rc;
726 } else if (manfid == MANFID_OSITECH) { 726 } else if (manfid == MANFID_OSITECH) {
727 /* Make sure both functions are powered up */ 727 /* Make sure both functions are powered up */
728 set_bits(0x300, link->io.BasePort1 + OSITECH_AUI_PWR); 728 set_bits(0x300, link->resource[0]->start + OSITECH_AUI_PWR);
729 /* Now, turn on the interrupt for both card functions */ 729 /* Now, turn on the interrupt for both card functions */
730 set_bits(0x300, link->io.BasePort1 + OSITECH_RESET_ISR); 730 set_bits(0x300, link->resource[0]->start + OSITECH_RESET_ISR);
731 dev_dbg(&link->dev, "AUI/PWR: %4.4x RESET/ISR: %4.4x\n", 731 dev_dbg(&link->dev, "AUI/PWR: %4.4x RESET/ISR: %4.4x\n",
732 inw(link->io.BasePort1 + OSITECH_AUI_PWR), 732 inw(link->resource[0]->start + OSITECH_AUI_PWR),
733 inw(link->io.BasePort1 + OSITECH_RESET_ISR)); 733 inw(link->resource[0]->start + OSITECH_RESET_ISR));
734 } 734 }
735 return 0; 735 return 0;
736} 736}