diff options
Diffstat (limited to 'drivers/scsi/pcmcia/nsp_cs.c')
-rw-r--r-- | drivers/scsi/pcmcia/nsp_cs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index aa4523462578..7c19bf264873 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c | |||
@@ -1611,12 +1611,12 @@ static void nsp_cs_detach(struct pcmcia_device *link) | |||
1611 | struct nsp_cs_configdata { | 1611 | struct nsp_cs_configdata { |
1612 | nsp_hw_data *data; | 1612 | nsp_hw_data *data; |
1613 | win_req_t req; | 1613 | win_req_t req; |
1614 | config_info_t conf; | ||
1615 | }; | 1614 | }; |
1616 | 1615 | ||
1617 | static int nsp_cs_config_check(struct pcmcia_device *p_dev, | 1616 | static int nsp_cs_config_check(struct pcmcia_device *p_dev, |
1618 | cistpl_cftable_entry_t *cfg, | 1617 | cistpl_cftable_entry_t *cfg, |
1619 | cistpl_cftable_entry_t *dflt, | 1618 | cistpl_cftable_entry_t *dflt, |
1619 | unsigned int vcc, | ||
1620 | void *priv_data) | 1620 | void *priv_data) |
1621 | { | 1621 | { |
1622 | struct nsp_cs_configdata *cfg_mem = priv_data; | 1622 | struct nsp_cs_configdata *cfg_mem = priv_data; |
@@ -1633,10 +1633,10 @@ static int nsp_cs_config_check(struct pcmcia_device *p_dev, | |||
1633 | /* Use power settings for Vcc and Vpp if present */ | 1633 | /* Use power settings for Vcc and Vpp if present */ |
1634 | /* Note that the CIS values need to be rescaled */ | 1634 | /* Note that the CIS values need to be rescaled */ |
1635 | if (cfg->vcc.present & (1<<CISTPL_POWER_VNOM)) { | 1635 | if (cfg->vcc.present & (1<<CISTPL_POWER_VNOM)) { |
1636 | if (cfg_mem->conf.Vcc != cfg->vcc.param[CISTPL_POWER_VNOM]/10000) | 1636 | if (vcc != cfg->vcc.param[CISTPL_POWER_VNOM]/10000) |
1637 | return -ENODEV; | 1637 | return -ENODEV; |
1638 | else if (dflt->vcc.present & (1<<CISTPL_POWER_VNOM)) { | 1638 | else if (dflt->vcc.present & (1<<CISTPL_POWER_VNOM)) { |
1639 | if (cfg_mem->conf.Vcc != dflt->vcc.param[CISTPL_POWER_VNOM]/10000) | 1639 | if (vcc != dflt->vcc.param[CISTPL_POWER_VNOM]/10000) |
1640 | return -ENODEV; | 1640 | return -ENODEV; |
1641 | } | 1641 | } |
1642 | 1642 | ||
@@ -1719,8 +1719,6 @@ static int nsp_cs_config(struct pcmcia_device *link) | |||
1719 | return -ENOMEM; | 1719 | return -ENOMEM; |
1720 | cfg_mem->data = data; | 1720 | cfg_mem->data = data; |
1721 | 1721 | ||
1722 | /* Look up the current Vcc */ | ||
1723 | CS_CHECK(GetConfigurationInfo, pcmcia_get_configuration_info(link, &cfg_mem->conf)); | ||
1724 | ret = pcmcia_loop_config(link, nsp_cs_config_check, cfg_mem); | 1722 | ret = pcmcia_loop_config(link, nsp_cs_config_check, cfg_mem); |
1725 | goto cs_failed; | 1723 | goto cs_failed; |
1726 | 1724 | ||