From 4357bf2625ae6de8c0cd71f9f1d2b5f697864b8e Mon Sep 17 00:00:00 2001 From: augustss Date: Tue, 18 Jan 2000 19:46:55 +0000 Subject: [PATCH] Pretend we can detach. Then we can at least the detach the device if the attach fails in the middle. --- sys/dev/usb/if_aue.c | 5 ++--- sys/dev/usb/if_cue.c | 5 ++--- sys/dev/usb/if_kue.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index dc7f042b9d68..e15288c130d5 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_aue.c,v 1.12 2000/01/17 13:23:05 augustss Exp $ */ +/* $NetBSD: if_aue.c,v 1.13 2000/01/18 19:46:55 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 * Bill Paul . All rights reserved. @@ -911,9 +911,8 @@ USB_DETACH(aue) * to the ifnet. */ if_delref(sc->aue_ec.ec_if); - return (0); #else - return (EBUSY); + return (0); #endif #endif /* defined(__NetBSD__) || defined(__OpenBSD__) */ diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index ee4ae4ac23b5..0a1580a5b2c1 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_cue.c,v 1.1 2000/01/17 17:12:20 augustss Exp $ */ +/* $NetBSD: if_cue.c,v 1.2 2000/01/18 19:46:55 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 * Bill Paul . All rights reserved. @@ -685,9 +685,8 @@ USB_DETACH(cue) * to the ifnet. */ if_delref(sc->cue_ec.ec_if); - return (0); #else - return (EBUSY); + return (0); #endif #endif /* defined(__NetBSD__) || defined(__OpenBSD__) */ diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index 1516b5b13a6d..3f7d158a57f5 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_kue.c,v 1.2 2000/01/17 13:25:22 augustss Exp $ */ +/* $NetBSD: if_kue.c,v 1.3 2000/01/18 19:46:55 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 * Bill Paul . All rights reserved. @@ -742,9 +742,8 @@ USB_DETACH(kue) * to the ifnet. */ if_delref(sc->kue_ec.ec_if); - return (0); #else - return (EBUSY); + return (0); #endif #endif /* defined(__NetBSD__) || defined(__OpenBSD__) */