Skip to content

Commit

Permalink
[PATCH] pcmcia: allow for four multifunction subdevices
Browse files Browse the repository at this point in the history
Some Elan serial cards allow for four (independent) multifunction
subdevices. Teach the PCMCIA core to deal with such devices.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Dominik Brodowski committed Dec 5, 2006
1 parent 9374074 commit 6cf5be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f

mutex_lock(&device_add_lock);

/* max of 2 devices per card */
if (s->device_count == 2)
/* max of 4 devices per card */
if (s->device_count == 4)
goto err_put;

p_dev = kzalloc(sizeof(struct pcmcia_device), GFP_KERNEL);
Expand Down

0 comments on commit 6cf5be5

Please sign in to comment.