From 533b7cef1e31350455000b645ffc578b133628d4 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 25 Aug 2003 18:20:03 +0000 Subject: 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. --- sys/dev/pccard/pccard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/pccard') diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 49a35af5556e3..055cdfddea6ec 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -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); } -- cgit v1.3