Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189104
b: refs/heads/master
c: 7d7ba8d
h: refs/heads/master
v: v3
  • Loading branch information
Dominik Brodowski committed Mar 24, 2010
1 parent 629343f commit daf9230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 9713ab28ec92d0c44b2ac5765dfc26c619d9cadd
refs/heads/master: 7d7ba8d31eb293016bc91a5c8fc36b21fd917265
8 changes: 6 additions & 2 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,12 @@ struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s, unsigned int fu
p_dev->device_no = (s->device_count++);
mutex_unlock(&s->ops_mutex);

/* max of 2 devices per card */
if (p_dev->device_no >= 2)
/* max of 2 PFC devices */
if ((p_dev->device_no >= 2) && (function == 0))
goto err_free;

/* max of 4 devices overall */
if (p_dev->device_no >= 4)
goto err_free;

p_dev->socket = s;
Expand Down

0 comments on commit daf9230

Please sign in to comment.