Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190348
b: refs/heads/master
c: 83bf6f1
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Kurz authored and Dominik Brodowski committed Apr 26, 2010
1 parent 0f7b93c commit dc47757
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 04de0816173c86948b75da93a6344a0a02bbec4d
refs/heads/master: 83bf6f11e82eba8533f8dbd241b2c2825e42ae5d
7 changes: 4 additions & 3 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,11 +820,12 @@ static inline int pcmcia_devmatch(struct pcmcia_device *dev,
}

if (did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO) {
if (dev->device_no != did->device_no)
return 0;
dev_dbg(&dev->dev, "this is a pseudo-multi-function device\n");
mutex_lock(&dev->socket->ops_mutex);
dev->socket->pcmcia_state.has_pfc = 1;
mutex_unlock(&dev->socket->ops_mutex);
if (dev->device_no != did->device_no)
return 0;
}

if (did->match_flags & PCMCIA_DEV_ID_MATCH_FUNC_ID) {
Expand All @@ -835,7 +836,7 @@ static inline int pcmcia_devmatch(struct pcmcia_device *dev,

/* if this is a pseudo-multi-function device,
* we need explicit matches */
if (did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO)
if (dev->socket->pcmcia_state.has_pfc)
return 0;
if (dev->device_no)
return 0;
Expand Down

0 comments on commit dc47757

Please sign in to comment.