diff options
Diffstat (limited to 'drivers/pcmcia/pxa2xx_base.c')
-rw-r--r-- | drivers/pcmcia/pxa2xx_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/pxa2xx_base.c b/drivers/pcmcia/pxa2xx_base.c index 16f84aab6ab3..c49a7269f6d1 100644 --- a/drivers/pcmcia/pxa2xx_base.c +++ b/drivers/pcmcia/pxa2xx_base.c | |||
@@ -214,7 +214,7 @@ static void pxa2xx_configure_sockets(struct device *dev) | |||
214 | MECR |= MECR_CIT; | 214 | MECR |= MECR_CIT; |
215 | 215 | ||
216 | /* Set MECR:NOS (Number Of Sockets) */ | 216 | /* Set MECR:NOS (Number Of Sockets) */ |
217 | if (ops->nr > 1 || machine_is_viper()) | 217 | if ((ops->first + ops->nr) > 1 || machine_is_viper()) |
218 | MECR |= MECR_NOS; | 218 | MECR |= MECR_NOS; |
219 | else | 219 | else |
220 | MECR &= ~MECR_NOS; | 220 | MECR &= ~MECR_NOS; |
@@ -250,7 +250,7 @@ int __pxa2xx_drv_pcmcia_probe(struct device *dev) | |||
250 | for (i = 0; i < ops->nr; i++) { | 250 | for (i = 0; i < ops->nr; i++) { |
251 | skt = &sinfo->skt[i]; | 251 | skt = &sinfo->skt[i]; |
252 | 252 | ||
253 | skt->nr = i; | 253 | skt->nr = ops->first + i; |
254 | skt->irq = NO_IRQ; | 254 | skt->irq = NO_IRQ; |
255 | 255 | ||
256 | skt->res_skt.start = _PCMCIA(skt->nr); | 256 | skt->res_skt.start = _PCMCIA(skt->nr); |