diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2010-11-03 21:50:49 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2010-11-03 21:50:49 +0000 |
commit | 0850594b2bfebda9bb43e482518bfba7ab603377 (patch) | |
tree | d8dadea89d8c948ce0d2dfa99cdd1e2a720a6e54 /sys/dev/usb/serial/uvisor.c | |
parent | 06824871e773f65faaf3bc5bb9ca1d6d91f4711c (diff) | |
download | FreeBSD-src-0850594b2bfebda9bb43e482518bfba7ab603377.zip FreeBSD-src-0850594b2bfebda9bb43e482518bfba7ab603377.tar.gz |
- Simplify the way unit/subunit allocation is done in ucom.
- hw.usb.ucom.cons_unit is now split into
hw.usb.ucom.cons_unit/...cons_subunit.
Note: The tunable/sysctl hw.usb.ucom.cons_unit needs to be reviewed if
a) a console was defined a USB serial devices, and a USB device with
more than 1 subunit is present, and this device is attached before the
device functioning as a console
or
b) a console was defined on a USB device with more than 1 subunit
Reviewed by: hps
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/usb/serial/uvisor.c')
-rw-r--r-- | sys/dev/usb/serial/uvisor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/serial/uvisor.c b/sys/dev/usb/serial/uvisor.c index 96a3389..127f364 100644 --- a/sys/dev/usb/serial/uvisor.c +++ b/sys/dev/usb/serial/uvisor.c @@ -361,7 +361,7 @@ uvisor_detach(device_t dev) DPRINTF("sc=%p\n", sc); - ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1); + ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); usbd_transfer_unsetup(sc->sc_xfer, UVISOR_N_TRANSFER); mtx_destroy(&sc->sc_mtx); |