Deleted Added
full compact
uvscom.c (184736) uvscom.c (184824)
1/* $NetBSD: usb/uvscom.c,v 1.1 2002/03/19 15:08:42 augustss Exp $ */
2
3#include <sys/cdefs.h>
1/* $NetBSD: usb/uvscom.c,v 1.1 2002/03/19 15:08:42 augustss Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD: head/sys/dev/usb2/serial/uvscom2.c 184736 2008-11-06 17:26:12Z imp $");
4__FBSDID("$FreeBSD: head/sys/dev/usb2/serial/uvscom2.c 184824 2008-11-10 20:54:31Z thompsa $");
5
6/*-
7 * Copyright (c) 2001-2003, 2005 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:

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

335 UVSCOM_FLAG_READ_STALL);
336
337 error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
338 &uvscom_callback, &Giant);
339 if (error) {
340 goto detach;
341 }
342 /* start interrupt pipe */
5
6/*-
7 * Copyright (c) 2001-2003, 2005 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:

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

335 UVSCOM_FLAG_READ_STALL);
336
337 error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
338 &uvscom_callback, &Giant);
339 if (error) {
340 goto detach;
341 }
342 /* start interrupt pipe */
343 mtx_lock(sc->sc_xfer[4]->priv_mtx);
343 USB_XFER_LOCK(sc->sc_xfer[4]);
344 usb2_transfer_start(sc->sc_xfer[4]);
344 usb2_transfer_start(sc->sc_xfer[4]);
345 mtx_unlock(sc->sc_xfer[4]->priv_mtx);
345 USB_XFER_UNLOCK(sc->sc_xfer[4]);
346
347 return (0);
348
349detach:
350 uvscom_detach(dev);
351 return (ENXIO);
352}
353

--- 473 unchanged lines hidden ---
346
347 return (0);
348
349detach:
350 uvscom_detach(dev);
351 return (ENXIO);
352}
353

--- 473 unchanged lines hidden ---