[PATCH] pcmcia: match for fake CIS

Add another match flag for devices needing a CIS override.  The driver will
only probe/attach if the CIS has been replaced before.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Dominik Brodowski
2005-06-27 16:28:07 -07:00
committed by Linus Torvalds
parent 23a83bfe6a
commit ea7b38825b
3 changed files with 84 additions and 0 deletions

View File

@@ -733,6 +733,14 @@ static inline int pcmcia_devmatch(struct pcmcia_device *dev,
return 0;
}
if (did->match_flags & PCMCIA_DEV_ID_MATCH_FAKE_CIS) {
if (!dev->socket->fake_cis) {
/* FIXME: evaluate using firmware helpers to
* automagically load it from userspace */
return 0;
}
}
dev->dev.driver_data = (void *) did;
return 1;