summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2004-07-21 07:48:04 +0000
committerdlg <dlg@openbsd.org>2004-07-21 07:48:04 +0000
commitcebd092e2bbbaeb2d76fa9bbd263b8b544cf2b68 (patch)
tree480df374ce0b2441e5b1ef41410d50cc527195ea
parentfrom netbsd, umass.c 1.101 (diff)
downloadwireguard-openbsd-cebd092e2bbbaeb2d76fa9bbd263b8b544cf2b68.tar.xz
wireguard-openbsd-cebd092e2bbbaeb2d76fa9bbd263b8b544cf2b68.zip
from netbsd, umass.c 1.104
Do the quirk initialization earlier. ok krw@
-rw-r--r--sys/dev/usb/umass.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index 94d982d1c2e..734cff93434 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass.c,v 1.30 2004/07/21 07:46:55 dlg Exp $ */
+/* $OpenBSD: umass.c,v 1.31 2004/07/21 07:48:04 dlg Exp $ */
/* $NetBSD: umass.c,v 1.98 2003/09/08 19:30:59 mycroft Exp $ */
/*-
* Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>,
@@ -385,6 +385,14 @@ USB_ATTACH(umass)
printf("%s: using %s over %s\n", USBDEVNAME(sc->sc_dev), sCommand,
sWire);
+ if (quirk != NULL && quirk->uq_init != NULL) {
+ err = (*quirk->uq_init)(sc);
+ if (err) {
+ umass_disco(sc);
+ USB_ATTACH_ERROR_RETURN;
+ }
+ }
+
/*
* In addition to the Control endpoint the following endpoints
* are required:
@@ -548,14 +556,6 @@ USB_ATTACH(umass)
USB_ATTACH_ERROR_RETURN;
}
- if (quirk != NULL && quirk->uq_init != NULL) {
- err = (*quirk->uq_init)(sc);
- if (err) {
- umass_disco(sc);
- USB_ATTACH_ERROR_RETURN;
- }
- }
-
error = 0;
switch (sc->sc_cmd) {
case UMASS_CPROTO_RBC: