From 5cae06341b6d05776c898c53328c42c7bcb5791b Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 4 Oct 2002 15:30:44 +0000 Subject: try to detect correctly the module when subv/subd differ with non-subv/subd --- pciusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pciusb.c b/pciusb.c index eda4ca6..d1deda3 100644 --- a/pciusb.c +++ b/pciusb.c @@ -109,6 +109,9 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu } if (vendor != e->vendor || device != e->device) continue; // main ids differ + if (nb < 4 && e->module) + continue; // already found a match and this match isn't a subid one (so it's not potentially more precise) + if (nb == 4 && e->subvendor == 0xffff && e->subdevice == 0xffff && !no_subid) { pciusb_free(entries); fh_close(&f); -- cgit v1.2.1