Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3749
b: refs/heads/master
c: f602ff7
h: refs/heads/master
i:
  3747: 6de93ac
v: v3
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Jun 28, 2005
1 parent 71d9519 commit 7536ccb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff1fa9ef3c9fb23a6baa06b63f4bdf3de089b29a
refs/heads/master: f602ff7eb4e44e7245bfeeba4d078144703fcd76
9 changes: 9 additions & 0 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,15 @@ static inline int pcmcia_devmatch(struct pcmcia_device *dev,
}
}

if (did->match_flags & PCMCIA_DEV_ID_MATCH_ANONYMOUS) {
int i;
for (i=0; i<4; i++)
if (dev->prod_id[i])
return 0;
if (dev->has_manf_id || dev->has_card_id || dev->has_func_id)
return 0;
}

dev->dev.driver_data = (void *) did;

return 1;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mod_devicetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,6 @@ struct pcmcia_device_id {
#define PCMCIA_DEV_ID_MATCH_PROD_ID4 0x0080
#define PCMCIA_DEV_ID_MATCH_DEVICE_NO 0x0100
#define PCMCIA_DEV_ID_MATCH_FAKE_CIS 0x0200
#define PCMCIA_DEV_ID_MATCH_ANONYMOUS 0x0400

#endif /* LINUX_MOD_DEVICETABLE_H */

0 comments on commit 7536ccb

Please sign in to comment.