diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/pata_pcmcia.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 2 | ||||
-rw-r--r-- | drivers/ide/ide-cs.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hisax/sedlbauer_cs.c | 8 | ||||
-rw-r--r-- | drivers/mtd/maps/pcmciamtd.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/airo_cs.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/atmel_cs.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco_cs.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/spectrum_cs.c | 4 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 3 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/nsp_cs.c | 8 | ||||
-rw-r--r-- | drivers/serial/serial_cs.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/sl811_cs.c | 8 |
15 files changed, 39 insertions, 38 deletions
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index e944aa0c5517..12cdc9ff39ad 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c | |||
@@ -194,9 +194,9 @@ static int pcmcia_check_one_config(struct pcmcia_device *pdev, | |||
194 | } | 194 | } |
195 | 195 | ||
196 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 196 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
197 | pdev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 197 | pdev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
198 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 198 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
199 | pdev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 199 | pdev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
200 | 200 | ||
201 | if ((cfg->io.nwin > 0) || (dflt->io.nwin > 0)) { | 201 | if ((cfg->io.nwin > 0) || (dflt->io.nwin > 0)) { |
202 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &dflt->io; | 202 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &dflt->io; |
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 7ab8f29d5e0d..2c8d981c110d 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -686,7 +686,7 @@ static int bt3c_check_config(struct pcmcia_device *p_dev, | |||
686 | p_dev->io_lines = (try == 0) ? 16 : cf->io.flags & CISTPL_IO_LINES_MASK; | 686 | p_dev->io_lines = (try == 0) ? 16 : cf->io.flags & CISTPL_IO_LINES_MASK; |
687 | 687 | ||
688 | if (cf->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 688 | if (cf->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
689 | p_dev->conf.Vpp = cf->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 689 | p_dev->vpp = cf->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
690 | if ((cf->io.nwin > 0) && (cf->io.win[0].len == 8) && | 690 | if ((cf->io.nwin > 0) && (cf->io.win[0].len == 8) && |
691 | (cf->io.win[0].base != 0)) { | 691 | (cf->io.win[0].base != 0)) { |
692 | p_dev->resource[0]->start = cf->io.win[0].base; | 692 | p_dev->resource[0]->start = cf->io.win[0].base; |
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index 1c4f5e863b03..7ea6fa42fdef 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -615,7 +615,7 @@ static int btuart_check_config(struct pcmcia_device *p_dev, | |||
615 | p_dev->io_lines = (try == 0) ? 16 : cf->io.flags & CISTPL_IO_LINES_MASK; | 615 | p_dev->io_lines = (try == 0) ? 16 : cf->io.flags & CISTPL_IO_LINES_MASK; |
616 | 616 | ||
617 | if (cf->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 617 | if (cf->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
618 | p_dev->conf.Vpp = cf->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 618 | p_dev->vpp = cf->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
619 | if ((cf->io.nwin > 0) && (cf->io.win[0].len == 8) && | 619 | if ((cf->io.nwin > 0) && (cf->io.win[0].len == 8) && |
620 | (cf->io.win[0].base != 0)) { | 620 | (cf->io.win[0].base != 0)) { |
621 | p_dev->resource[0]->start = cf->io.win[0].base; | 621 | p_dev->resource[0]->start = cf->io.win[0].base; |
diff --git a/drivers/ide/ide-cs.c b/drivers/ide/ide-cs.c index 2a4cb9c18f01..82690e409435 100644 --- a/drivers/ide/ide-cs.c +++ b/drivers/ide/ide-cs.c | |||
@@ -221,9 +221,9 @@ static int pcmcia_check_one_config(struct pcmcia_device *pdev, | |||
221 | } | 221 | } |
222 | 222 | ||
223 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 223 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
224 | pdev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 224 | pdev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
225 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 225 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
226 | pdev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 226 | pdev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
227 | 227 | ||
228 | if ((cfg->io.nwin > 0) || (dflt->io.nwin > 0)) { | 228 | if ((cfg->io.nwin > 0) || (dflt->io.nwin > 0)) { |
229 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &dflt->io; | 229 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &dflt->io; |
@@ -311,7 +311,7 @@ static int ide_config(struct pcmcia_device *link) | |||
311 | info->host = host; | 311 | info->host = host; |
312 | dev_info(&link->dev, "ide-cs: hd%c: Vpp = %d.%d\n", | 312 | dev_info(&link->dev, "ide-cs: hd%c: Vpp = %d.%d\n", |
313 | 'a' + host->ports[0]->index * 2, | 313 | 'a' + host->ports[0]->index * 2, |
314 | link->conf.Vpp / 10, link->conf.Vpp % 10); | 314 | link->vpp / 10, link->vpp % 10); |
315 | 315 | ||
316 | kfree(stk); | 316 | kfree(stk); |
317 | return 0; | 317 | return 0; |
diff --git a/drivers/isdn/hisax/sedlbauer_cs.c b/drivers/isdn/hisax/sedlbauer_cs.c index a024192b672a..ad07d61dc09b 100644 --- a/drivers/isdn/hisax/sedlbauer_cs.c +++ b/drivers/isdn/hisax/sedlbauer_cs.c | |||
@@ -191,9 +191,9 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev, | |||
191 | } | 191 | } |
192 | 192 | ||
193 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 193 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
194 | p_dev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; | 194 | p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; |
195 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 195 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
196 | p_dev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; | 196 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; |
197 | 197 | ||
198 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; | 198 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; |
199 | 199 | ||
@@ -257,8 +257,8 @@ static int __devinit sedlbauer_config(struct pcmcia_device *link) | |||
257 | /* Finally, report what we've done */ | 257 | /* Finally, report what we've done */ |
258 | dev_info(&link->dev, "index 0x%02x:", | 258 | dev_info(&link->dev, "index 0x%02x:", |
259 | link->conf.ConfigIndex); | 259 | link->conf.ConfigIndex); |
260 | if (link->conf.Vpp) | 260 | if (link->vpp) |
261 | printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10); | 261 | printk(", Vpp %d.%d", link->vpp/10, link->vpp%10); |
262 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 262 | if (link->conf.Attributes & CONF_ENABLE_IRQ) |
263 | printk(", irq %d", link->irq); | 263 | printk(", irq %d", link->irq); |
264 | if (link->resource[0]) | 264 | if (link->resource[0]) |
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index 31ce404baa3c..ab94c8aebddc 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -570,9 +570,9 @@ static int pcmciamtd_config(struct pcmcia_device *link) | |||
570 | dev->vpp = (vpp) ? vpp : link->socket->socket.Vpp; | 570 | dev->vpp = (vpp) ? vpp : link->socket->socket.Vpp; |
571 | link->conf.Attributes = 0; | 571 | link->conf.Attributes = 0; |
572 | if(setvpp == 2) { | 572 | if(setvpp == 2) { |
573 | link->conf.Vpp = dev->vpp; | 573 | link->vpp = dev->vpp; |
574 | } else { | 574 | } else { |
575 | link->conf.Vpp = 0; | 575 | link->vpp = 0; |
576 | } | 576 | } |
577 | 577 | ||
578 | link->conf.IntType = INT_MEMORY; | 578 | link->conf.IntType = INT_MEMORY; |
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c index 9a121a5b787c..488e7b45d54b 100644 --- a/drivers/net/wireless/airo_cs.c +++ b/drivers/net/wireless/airo_cs.c | |||
@@ -166,9 +166,9 @@ static int airo_cs_config_check(struct pcmcia_device *p_dev, | |||
166 | /* Use power settings for Vcc and Vpp if present */ | 166 | /* Use power settings for Vcc and Vpp if present */ |
167 | /* Note that the CIS values need to be rescaled */ | 167 | /* Note that the CIS values need to be rescaled */ |
168 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 168 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
169 | p_dev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; | 169 | p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; |
170 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 170 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
171 | p_dev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; | 171 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; |
172 | 172 | ||
173 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; | 173 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; |
174 | 174 | ||
@@ -244,8 +244,8 @@ static int airo_config(struct pcmcia_device *link) | |||
244 | /* Finally, report what we've done */ | 244 | /* Finally, report what we've done */ |
245 | dev_info(&link->dev, "index 0x%02x: ", | 245 | dev_info(&link->dev, "index 0x%02x: ", |
246 | link->conf.ConfigIndex); | 246 | link->conf.ConfigIndex); |
247 | if (link->conf.Vpp) | 247 | if (link->vpp) |
248 | printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10); | 248 | printk(", Vpp %d.%d", link->vpp/10, link->vpp%10); |
249 | printk(", irq %d", link->irq); | 249 | printk(", irq %d", link->irq); |
250 | if (link->resource[0]) | 250 | if (link->resource[0]) |
251 | printk(" & %pR", link->resource[0]); | 251 | printk(" & %pR", link->resource[0]); |
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c index 3b632161c106..479f5084bac1 100644 --- a/drivers/net/wireless/atmel_cs.c +++ b/drivers/net/wireless/atmel_cs.c | |||
@@ -183,9 +183,9 @@ static int atmel_config_check(struct pcmcia_device *p_dev, | |||
183 | /* Use power settings for Vcc and Vpp if present */ | 183 | /* Use power settings for Vcc and Vpp if present */ |
184 | /* Note that the CIS values need to be rescaled */ | 184 | /* Note that the CIS values need to be rescaled */ |
185 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 185 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
186 | p_dev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; | 186 | p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; |
187 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 187 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
188 | p_dev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; | 188 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; |
189 | 189 | ||
190 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; | 190 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; |
191 | 191 | ||
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index ba54d1b04d22..3f35dd4438ca 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -508,9 +508,9 @@ static int prism2_config_check(struct pcmcia_device *p_dev, | |||
508 | } | 508 | } |
509 | 509 | ||
510 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 510 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
511 | p_dev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 511 | p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
512 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 512 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
513 | p_dev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 513 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
514 | 514 | ||
515 | /* Do we need to allocate an interrupt? */ | 515 | /* Do we need to allocate an interrupt? */ |
516 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; | 516 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; |
@@ -605,9 +605,9 @@ static int prism2_config(struct pcmcia_device *link) | |||
605 | /* Finally, report what we've done */ | 605 | /* Finally, report what we've done */ |
606 | printk(KERN_INFO "%s: index 0x%02x: ", | 606 | printk(KERN_INFO "%s: index 0x%02x: ", |
607 | dev_info, link->conf.ConfigIndex); | 607 | dev_info, link->conf.ConfigIndex); |
608 | if (link->conf.Vpp) | 608 | if (link->vpp) |
609 | printk(", Vpp %d.%d", link->conf.Vpp / 10, | 609 | printk(", Vpp %d.%d", link->vpp / 10, |
610 | link->conf.Vpp % 10); | 610 | link->vpp % 10); |
611 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 611 | if (link->conf.Attributes & CONF_ENABLE_IRQ) |
612 | printk(", irq %d", link->irq); | 612 | printk(", irq %d", link->irq); |
613 | if (link->resource[0]) | 613 | if (link->resource[0]) |
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c index ef46a2d88539..f7e3fa6305b4 100644 --- a/drivers/net/wireless/orinoco/orinoco_cs.c +++ b/drivers/net/wireless/orinoco/orinoco_cs.c | |||
@@ -181,10 +181,10 @@ static int orinoco_cs_config_check(struct pcmcia_device *p_dev, | |||
181 | } | 181 | } |
182 | 182 | ||
183 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 183 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
184 | p_dev->conf.Vpp = | 184 | p_dev->vpp = |
185 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 185 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
186 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 186 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
187 | p_dev->conf.Vpp = | 187 | p_dev->vpp = |
188 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 188 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
189 | 189 | ||
190 | /* Do we need to allocate an interrupt? */ | 190 | /* Do we need to allocate an interrupt? */ |
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c index 873877e17e1b..1bbad101b559 100644 --- a/drivers/net/wireless/orinoco/spectrum_cs.c +++ b/drivers/net/wireless/orinoco/spectrum_cs.c | |||
@@ -243,10 +243,10 @@ static int spectrum_cs_config_check(struct pcmcia_device *p_dev, | |||
243 | } | 243 | } |
244 | 244 | ||
245 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 245 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
246 | p_dev->conf.Vpp = | 246 | p_dev->vpp = |
247 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 247 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
248 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 248 | else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
249 | p_dev->conf.Vpp = | 249 | p_dev->vpp = |
250 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 250 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
251 | 251 | ||
252 | /* Do we need to allocate an interrupt? */ | 252 | /* Do we need to allocate an interrupt? */ |
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index 14b1a951e1b6..817d00adfc89 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -303,6 +303,7 @@ int pcmcia_fixup_vpp(struct pcmcia_device *p_dev, unsigned char new_vpp) | |||
303 | ret = -EIO; | 303 | ret = -EIO; |
304 | goto unlock; | 304 | goto unlock; |
305 | } | 305 | } |
306 | p_dev->vpp = new_vpp; | ||
306 | 307 | ||
307 | unlock: | 308 | unlock: |
308 | mutex_unlock(&s->ops_mutex); | 309 | mutex_unlock(&s->ops_mutex); |
@@ -458,7 +459,7 @@ int pcmcia_request_configuration(struct pcmcia_device *p_dev, | |||
458 | } | 459 | } |
459 | 460 | ||
460 | /* Do power control. We don't allow changes in Vcc. */ | 461 | /* Do power control. We don't allow changes in Vcc. */ |
461 | s->socket.Vpp = req->Vpp; | 462 | s->socket.Vpp = p_dev->vpp; |
462 | if (s->ops->set_socket(s, &s->socket)) { | 463 | if (s->ops->set_socket(s, &s->socket)) { |
463 | mutex_unlock(&s->ops_mutex); | 464 | mutex_unlock(&s->ops_mutex); |
464 | dev_printk(KERN_WARNING, &p_dev->dev, | 465 | dev_printk(KERN_WARNING, &p_dev->dev, |
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index e872e0684273..50574e869418 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c | |||
@@ -1624,10 +1624,10 @@ static int nsp_cs_config_check(struct pcmcia_device *p_dev, | |||
1624 | } | 1624 | } |
1625 | 1625 | ||
1626 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) { | 1626 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) { |
1627 | p_dev->conf.Vpp = | 1627 | p_dev->vpp = |
1628 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 1628 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
1629 | } else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) { | 1629 | } else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) { |
1630 | p_dev->conf.Vpp = | 1630 | p_dev->vpp = |
1631 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 1631 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
1632 | } | 1632 | } |
1633 | 1633 | ||
@@ -1749,8 +1749,8 @@ static int nsp_cs_config(struct pcmcia_device *link) | |||
1749 | /* Finally, report what we've done */ | 1749 | /* Finally, report what we've done */ |
1750 | printk(KERN_INFO "nsp_cs: index 0x%02x: ", | 1750 | printk(KERN_INFO "nsp_cs: index 0x%02x: ", |
1751 | link->conf.ConfigIndex); | 1751 | link->conf.ConfigIndex); |
1752 | if (link->conf.Vpp) { | 1752 | if (link->vpp) { |
1753 | printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10); | 1753 | printk(", Vpp %d.%d", link->vpp/10, link->vpp%10); |
1754 | } | 1754 | } |
1755 | if (link->conf.Attributes & CONF_ENABLE_IRQ) { | 1755 | if (link->conf.Attributes & CONF_ENABLE_IRQ) { |
1756 | printk(", irq %d", link->irq); | 1756 | printk(", irq %d", link->irq); |
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c index 7d475b2a79e8..9597442a0ac1 100644 --- a/drivers/serial/serial_cs.c +++ b/drivers/serial/serial_cs.c | |||
@@ -440,7 +440,7 @@ static int simple_config_check(struct pcmcia_device *p_dev, | |||
440 | int *try = priv_data; | 440 | int *try = priv_data; |
441 | 441 | ||
442 | if (cf->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 442 | if (cf->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
443 | p_dev->conf.Vpp = | 443 | p_dev->vpp = |
444 | cf->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 444 | cf->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
445 | 445 | ||
446 | p_dev->io_lines = ((*try & 0x1) == 0) ? | 446 | p_dev->io_lines = ((*try & 0x1) == 0) ? |
diff --git a/drivers/usb/host/sl811_cs.c b/drivers/usb/host/sl811_cs.c index 0e13a00eb2ed..8e8475298baa 100644 --- a/drivers/usb/host/sl811_cs.c +++ b/drivers/usb/host/sl811_cs.c | |||
@@ -152,10 +152,10 @@ static int sl811_cs_config_check(struct pcmcia_device *p_dev, | |||
152 | } | 152 | } |
153 | 153 | ||
154 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 154 | if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
155 | p_dev->conf.Vpp = | 155 | p_dev->vpp = |
156 | cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; | 156 | cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; |
157 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 157 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
158 | p_dev->conf.Vpp = | 158 | p_dev->vpp = |
159 | dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; | 159 | dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; |
160 | 160 | ||
161 | /* we need an interrupt */ | 161 | /* we need an interrupt */ |
@@ -201,8 +201,8 @@ static int sl811_cs_config(struct pcmcia_device *link) | |||
201 | 201 | ||
202 | dev_info(&link->dev, "index 0x%02x: ", | 202 | dev_info(&link->dev, "index 0x%02x: ", |
203 | link->conf.ConfigIndex); | 203 | link->conf.ConfigIndex); |
204 | if (link->conf.Vpp) | 204 | if (link->vpp) |
205 | printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10); | 205 | printk(", Vpp %d.%d", link->vpp/10, link->vpp%10); |
206 | printk(", irq %d", link->irq); | 206 | printk(", irq %d", link->irq); |
207 | printk(", io %pR", link->resource[0]); | 207 | printk(", io %pR", link->resource[0]); |
208 | printk("\n"); | 208 | printk("\n"); |