diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-07-24 09:58:54 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-08-03 03:03:59 -0400 |
commit | 9a017a910346afd88ec2e065989903bf211a7d37 (patch) | |
tree | b407945c6e762f252bb81ae0fd64c745bba2ad11 /drivers/scsi/pcmcia/sym53c500_cs.c | |
parent | 2ce4905e4da9f512b38f56a53ece9da2072dd164 (diff) |
pcmcia: do not use io_req_t after call to pcmcia_request_io()
After pcmcia_request_io(), do not make use of the values stored in
io_req_t, but instead use those found in struct pcmcia_device->resource[].
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
Acked-by: Marcel Holtmann <marcel@holtmann.org> (for drivers/bluetooth/)
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/scsi/pcmcia/sym53c500_cs.c')
-rw-r--r-- | drivers/scsi/pcmcia/sym53c500_cs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c index bd79e45ab856..d99c0cbad2de 100644 --- a/drivers/scsi/pcmcia/sym53c500_cs.c +++ b/drivers/scsi/pcmcia/sym53c500_cs.c | |||
@@ -733,9 +733,9 @@ SYM53C500_config(struct pcmcia_device *link) | |||
733 | (info->manf_id == MANFID_PIONEER) || | 733 | (info->manf_id == MANFID_PIONEER) || |
734 | (info->manf_id == 0x0098)) { | 734 | (info->manf_id == 0x0098)) { |
735 | /* set ATAcmd */ | 735 | /* set ATAcmd */ |
736 | outb(0xb4, link->io.BasePort1 + 0xd); | 736 | outb(0xb4, link->resource[0]->start + 0xd); |
737 | outb(0x24, link->io.BasePort1 + 0x9); | 737 | outb(0x24, link->resource[0]->start + 0x9); |
738 | outb(0x04, link->io.BasePort1 + 0xd); | 738 | outb(0x04, link->resource[0]->start + 0xd); |
739 | } | 739 | } |
740 | 740 | ||
741 | /* | 741 | /* |
@@ -748,7 +748,7 @@ SYM53C500_config(struct pcmcia_device *link) | |||
748 | * 0x130, 0x230, 0x280, 0x290, | 748 | * 0x130, 0x230, 0x280, 0x290, |
749 | * 0x320, 0x330, 0x340, 0x350 | 749 | * 0x320, 0x330, 0x340, 0x350 |
750 | */ | 750 | */ |
751 | port_base = link->io.BasePort1; | 751 | port_base = link->resource[0]->start; |
752 | irq_level = link->irq; | 752 | irq_level = link->irq; |
753 | 753 | ||
754 | DEB(printk("SYM53C500: port_base=0x%x, irq=%d, fast_pio=%d\n", | 754 | DEB(printk("SYM53C500: port_base=0x%x, irq=%d, fast_pio=%d\n", |
@@ -821,15 +821,15 @@ static int sym53c500_resume(struct pcmcia_device *link) | |||
821 | if ((info->manf_id == MANFID_MACNICA) || | 821 | if ((info->manf_id == MANFID_MACNICA) || |
822 | (info->manf_id == MANFID_PIONEER) || | 822 | (info->manf_id == MANFID_PIONEER) || |
823 | (info->manf_id == 0x0098)) { | 823 | (info->manf_id == 0x0098)) { |
824 | outb(0x80, link->io.BasePort1 + 0xd); | 824 | outb(0x80, link->resource[0]->start + 0xd); |
825 | outb(0x24, link->io.BasePort1 + 0x9); | 825 | outb(0x24, link->resource[0]->start + 0x9); |
826 | outb(0x04, link->io.BasePort1 + 0xd); | 826 | outb(0x04, link->resource[0]->start + 0xd); |
827 | } | 827 | } |
828 | /* | 828 | /* |
829 | * If things don't work after a "resume", | 829 | * If things don't work after a "resume", |
830 | * this is a good place to start looking. | 830 | * this is a good place to start looking. |
831 | */ | 831 | */ |
832 | SYM53C500_int_host_reset(link->io.BasePort1); | 832 | SYM53C500_int_host_reset(link->resource[0]->start); |
833 | 833 | ||
834 | return 0; | 834 | return 0; |
835 | } | 835 | } |