[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:
committed by
Linus Torvalds
parent
23a83bfe6a
commit
ea7b38825b
@@ -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;
|
||||
|
Reference in New Issue
Block a user