Deleted Added
full compact
uslcom.c (214761) uslcom.c (214843)
1/* $OpenBSD: uslcom.c,v 1.17 2007/11/24 10:52:12 jsg Exp $ */
2
3#include <sys/cdefs.h>
1/* $OpenBSD: uslcom.c,v 1.17 2007/11/24 10:52:12 jsg Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uslcom.c 214761 2010-11-03 21:50:49Z n_hibma $");
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uslcom.c 214843 2010-11-05 19:12:48Z n_hibma $");
5
6/*
7 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
8 *
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
12 *

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

319 usbd_xfer_set_stall(sc->sc_xfer[USLCOM_BULK_DT_RD]);
320 mtx_unlock(&sc->sc_mtx);
321
322 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
323 &uslcom_callback, &sc->sc_mtx);
324 if (error) {
325 goto detach;
326 }
5
6/*
7 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
8 *
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
12 *

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

319 usbd_xfer_set_stall(sc->sc_xfer[USLCOM_BULK_DT_RD]);
320 mtx_unlock(&sc->sc_mtx);
321
322 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
323 &uslcom_callback, &sc->sc_mtx);
324 if (error) {
325 goto detach;
326 }
327 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev);
328
327 return (0);
328
329detach:
330 uslcom_detach(dev);
331 return (ENXIO);
332}
333
334static int

--- 296 unchanged lines hidden ---
329 return (0);
330
331detach:
332 uslcom_detach(dev);
333 return (ENXIO);
334}
335
336static int

--- 296 unchanged lines hidden ---