Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137540
b: refs/heads/master
c: d66ea8d
h: refs/heads/master
v: v3
  • Loading branch information
Marek Vasut authored and Eric Miao committed Mar 28, 2009
1 parent d89ad98 commit 6f0c1ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9b78189f50dcba6e69080268873a62c67e4bc15
refs/heads/master: d66ea8d4c2aa7199cf4e5c977eb25764e5fc5da9
4 changes: 2 additions & 2 deletions trunk/drivers/pcmcia/pxa2xx_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static void pxa2xx_configure_sockets(struct device *dev)
MECR |= MECR_CIT;

/* Set MECR:NOS (Number Of Sockets) */
if (ops->nr > 1 || machine_is_viper())
if ((ops->first + ops->nr) > 1 || machine_is_viper())
MECR |= MECR_NOS;
else
MECR &= ~MECR_NOS;
Expand Down Expand Up @@ -250,7 +250,7 @@ int __pxa2xx_drv_pcmcia_probe(struct device *dev)
for (i = 0; i < ops->nr; i++) {
skt = &sinfo->skt[i];

skt->nr = i;
skt->nr = ops->first + i;
skt->irq = NO_IRQ;

skt->res_skt.start = _PCMCIA(skt->nr);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/pcmcia/pxa2xx_palmld.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ static void palmld_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt)
static struct pcmcia_low_level palmld_pcmcia_ops = {
.owner = THIS_MODULE,

.first = 0,
.nr = 2,
.first = 1,
.nr = 1,

.hw_init = palmld_pcmcia_hw_init,
.hw_shutdown = palmld_pcmcia_hw_shutdown,
Expand Down

0 comments on commit 6f0c1ee

Please sign in to comment.