aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ds.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r--drivers/pcmcia/ds.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index f657a2a77b2b..66680699e913 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -746,6 +746,15 @@ static inline int pcmcia_devmatch(struct pcmcia_device *dev,
746 } 746 }
747 } 747 }
748 748
749 if (did->match_flags & PCMCIA_DEV_ID_MATCH_ANONYMOUS) {
750 int i;
751 for (i=0; i<4; i++)
752 if (dev->prod_id[i])
753 return 0;
754 if (dev->has_manf_id || dev->has_card_id || dev->has_func_id)
755 return 0;
756 }
757
749 dev->dev.driver_data = (void *) did; 758 dev->dev.driver_data = (void *) did;
750 759
751 return 1; 760 return 1;