diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-17 20:30:26 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-17 20:30:26 +0000 |
commit | d7b3fcba336efebc4ea19501623baf8765ccb596 (patch) | |
tree | f6b7f5f05cfcd63cfd917cb0c9dfa5e9699c3e4c | |
parent | 5ae366b6698889719594eb9dbe31073d19e19542 (diff) |
Save the result of the configure children, so that the device
can be unconfigured. Allows uaudio to be unplugged.
Tested by lebel, aaron did not understand why the code was that way.
-rw-r--r-- | sys/dev/usb/uaudio.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 803b8ef2bdd..c7e5dc36e56 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.9 2001/05/03 02:20:32 aaron Exp $ */ +/* $OpenBSD: uaudio.c,v 1.10 2001/09/17 20:30:25 drahn Exp $ */ /* $NetBSD: uaudio.c,v 1.41 2001/01/23 14:04:13 augustss Exp $ */ /* @@ -409,11 +409,7 @@ USB_ATTACH(uaudio) USBDEV(sc->sc_dev)); DPRINTF(("uaudio_attach: doing audio_attach_mi\n")); -#if defined(__OpenBSD__) - audio_attach_mi(&uaudio_hw_if, sc, &sc->sc_dev); -#else sc->sc_audiodev = audio_attach_mi(&uaudio_hw_if, sc, &sc->sc_dev); -#endif USB_ATTACH_SUCCESS_RETURN; } |