Probe routines can return < 0 for speculative matches. In the

compatibility routine, go ahead and accept that as 'success'.  A
properly written compatible driver should return < 0 for both the
compat match and compat probe routines, so this will wind up doing the
right thing.
This commit is contained in:
imp 2003-08-25 18:20:03 +00:00
parent 2576cdbe11
commit dd084178f0

View File

@ -759,7 +759,7 @@ pccard_compat_do_attach(device_t bus, device_t dev)
int err;
err = CARD_COMPAT_PROBE(dev);
if (err == 0)
if (err <= 0)
err = CARD_COMPAT_ATTACH(dev);
return (err);
}