diff options
| -rw-r--r-- | drivers/pcmcia/ds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 211aa84353fc..16159e9d1b2b 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
| @@ -588,8 +588,8 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f | |||
| 588 | p_dev->socket = s; | 588 | p_dev->socket = s; |
| 589 | p_dev->device_no = (s->device_count++); | 589 | p_dev->device_no = (s->device_count++); |
| 590 | p_dev->func = function; | 590 | p_dev->func = function; |
| 591 | if (s->functions < function) | 591 | if (s->functions <= function) |
| 592 | s->functions = function; | 592 | s->functions = function + 1; |
| 593 | 593 | ||
| 594 | p_dev->dev.bus = &pcmcia_bus_type; | 594 | p_dev->dev.bus = &pcmcia_bus_type; |
| 595 | p_dev->dev.parent = s->dev.dev; | 595 | p_dev->dev.parent = s->dev.dev; |
