Deleted Added
full compact
umoscom.c (212122) umoscom.c (214761)
1/* $FreeBSD: head/sys/dev/usb/serial/umoscom.c 212122 2010-09-01 23:47:53Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb/serial/umoscom.c 214761 2010-11-03 21:50:49Z n_hibma $ */
2/* $OpenBSD: umoscom.c,v 1.2 2006/10/26 06:02:43 jsg Exp $ */
3
4/*
5 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.

--- 336 unchanged lines hidden (view full) ---

346 return (ENXIO);
347}
348
349static int
350umoscom_detach(device_t dev)
351{
352 struct umoscom_softc *sc = device_get_softc(dev);
353
2/* $OpenBSD: umoscom.c,v 1.2 2006/10/26 06:02:43 jsg Exp $ */
3
4/*
5 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.

--- 336 unchanged lines hidden (view full) ---

346 return (ENXIO);
347}
348
349static int
350umoscom_detach(device_t dev)
351{
352 struct umoscom_softc *sc = device_get_softc(dev);
353
354 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
354 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom);
355 usbd_transfer_unsetup(sc->sc_xfer, UMOSCOM_N_TRANSFER);
356 mtx_destroy(&sc->sc_mtx);
357
358 return (0);
359}
360
361static void
362umoscom_cfg_open(struct ucom_softc *ucom)

--- 344 unchanged lines hidden ---
355 usbd_transfer_unsetup(sc->sc_xfer, UMOSCOM_N_TRANSFER);
356 mtx_destroy(&sc->sc_mtx);
357
358 return (0);
359}
360
361static void
362umoscom_cfg_open(struct ucom_softc *ucom)

--- 344 unchanged lines hidden ---