summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/serial/uipaq.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2010-11-03 21:50:49 +0000
committern_hibma <n_hibma@FreeBSD.org>2010-11-03 21:50:49 +0000
commit0850594b2bfebda9bb43e482518bfba7ab603377 (patch)
treed8dadea89d8c948ce0d2dfa99cdd1e2a720a6e54 /sys/dev/usb/serial/uipaq.c
parent06824871e773f65faaf3bc5bb9ca1d6d91f4711c (diff)
downloadFreeBSD-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/uipaq.c')
-rw-r--r--sys/dev/usb/serial/uipaq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/serial/uipaq.c b/sys/dev/usb/serial/uipaq.c
index 3bc915f..a5516c1 100644
--- a/sys/dev/usb/serial/uipaq.c
+++ b/sys/dev/usb/serial/uipaq.c
@@ -1173,7 +1173,7 @@ uipaq_detach(device_t dev)
{
struct uipaq_softc *sc = device_get_softc(dev);
- 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, UIPAQ_N_TRANSFER);
mtx_destroy(&sc->sc_mtx);
OpenPOWER on IntegriCloud