aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-03-28 10:15:43 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-03-28 10:15:43 -0400
commitdc52b5bf2c94828fd3c8d26f4ca810d4ba53999a (patch)
treed8bfc950911cbe40f541d0e424650598075fb8be /drivers/pcmcia
parent542f869f1826f092606efd0c4c771f070d1314f5 (diff)
parentd66ea8d4c2aa7199cf4e5c977eb25764e5fc5da9 (diff)
Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/pxa2xx_base.c4
-rw-r--r--drivers/pcmcia/pxa2xx_palmld.c4
2 files changed, 4 insertions, 4 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);
diff --git a/drivers/pcmcia/pxa2xx_palmld.c b/drivers/pcmcia/pxa2xx_palmld.c
index 1736c67e547e..5ba9b3664a00 100644
--- a/drivers/pcmcia/pxa2xx_palmld.c
+++ b/drivers/pcmcia/pxa2xx_palmld.c
@@ -98,8 +98,8 @@ static void palmld_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt)
98static struct pcmcia_low_level palmld_pcmcia_ops = { 98static struct pcmcia_low_level palmld_pcmcia_ops = {
99 .owner = THIS_MODULE, 99 .owner = THIS_MODULE,
100 100
101 .first = 0, 101 .first = 1,
102 .nr = 2, 102 .nr = 1,
103 103
104 .hw_init = palmld_pcmcia_hw_init, 104 .hw_init = palmld_pcmcia_hw_init,
105 .hw_shutdown = palmld_pcmcia_hw_shutdown, 105 .hw_shutdown = palmld_pcmcia_hw_shutdown,