Deleted Added
full compact
uark.c (214761) uark.c (214843)
1/* $OpenBSD: uark.c,v 1.1 2006/08/14 08:30:22 jsg Exp $ */
2
3/*
4 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
1/* $OpenBSD: uark.c,v 1.1 2006/08/14 08:30:22 jsg Exp $ */
2
3/*
4 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * $FreeBSD: head/sys/dev/usb/serial/uark.c 214761 2010-11-03 21:50:49Z n_hibma $
18 * $FreeBSD: head/sys/dev/usb/serial/uark.c 214843 2010-11-05 19:12:48Z n_hibma $
19 */
20
21/*
22 * NOTE: all function names beginning like "uark_cfg_" can only
23 * be called from within the config thread function !
24 */
25
26

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

222 mtx_unlock(&sc->sc_mtx);
223
224 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
225 &uark_callback, &sc->sc_mtx);
226 if (error) {
227 DPRINTF("ucom_attach failed\n");
228 goto detach;
229 }
19 */
20
21/*
22 * NOTE: all function names beginning like "uark_cfg_" can only
23 * be called from within the config thread function !
24 */
25
26

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

222 mtx_unlock(&sc->sc_mtx);
223
224 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
225 &uark_callback, &sc->sc_mtx);
226 if (error) {
227 DPRINTF("ucom_attach failed\n");
228 goto detach;
229 }
230 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev);
231
230 return (0); /* success */
231
232detach:
233 uark_detach(dev);
234 return (ENXIO); /* failure */
235}
236
237static int

--- 206 unchanged lines hidden ---
232 return (0); /* success */
233
234detach:
235 uark_detach(dev);
236 return (ENXIO); /* failure */
237}
238
239static int

--- 206 unchanged lines hidden ---