aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pcmcia/sym53c500_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/pcmcia/sym53c500_cs.c')
-rw-r--r--drivers/scsi/pcmcia/sym53c500_cs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c
index d99c0cbad2de..321e390c9120 100644
--- a/drivers/scsi/pcmcia/sym53c500_cs.c
+++ b/drivers/scsi/pcmcia/sym53c500_cs.c
@@ -690,13 +690,14 @@ static int SYM53C500_config_check(struct pcmcia_device *p_dev,
690 unsigned int vcc, 690 unsigned int vcc,
691 void *priv_data) 691 void *priv_data)
692{ 692{
693 p_dev->io.BasePort1 = cfg->io.win[0].base; 693 p_dev->io_lines = 10;
694 p_dev->io.NumPorts1 = cfg->io.win[0].len; 694 p_dev->resource[0]->start = cfg->io.win[0].base;
695 p_dev->resource[0]->end = cfg->io.win[0].len;
695 696
696 if (p_dev->io.BasePort1 == 0) 697 if (p_dev->resource[0]->start == 0)
697 return -ENODEV; 698 return -ENODEV;
698 699
699 return pcmcia_request_io(p_dev, &p_dev->io); 700 return pcmcia_request_io(p_dev);
700} 701}
701 702
702static int 703static int
@@ -858,9 +859,8 @@ SYM53C500_probe(struct pcmcia_device *link)
858 return -ENOMEM; 859 return -ENOMEM;
859 info->p_dev = link; 860 info->p_dev = link;
860 link->priv = info; 861 link->priv = info;
861 link->io.NumPorts1 = 16; 862 link->resource[0]->end = 16;
862 link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO; 863 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
863 link->io.IOAddrLines = 10;
864 link->conf.Attributes = CONF_ENABLE_IRQ; 864 link->conf.Attributes = CONF_ENABLE_IRQ;
865 link->conf.IntType = INT_MEMORY_AND_IO; 865 link->conf.IntType = INT_MEMORY_AND_IO;
866 866