umoscom.c (214761) | umoscom.c (214843) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/serial/umoscom.c 214761 2010-11-03 21:50:49Z n_hibma $ */ | 1/* $FreeBSD: head/sys/dev/usb/serial/umoscom.c 214843 2010-11-05 19:12:48Z 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. --- 323 unchanged lines hidden (view full) --- 333 usbd_xfer_set_stall(sc->sc_xfer[UMOSCOM_BULK_DT_RD]); 334 mtx_unlock(&sc->sc_mtx); 335 336 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 337 &umoscom_callback, &sc->sc_mtx); 338 if (error) { 339 goto detach; 340 } | 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. --- 323 unchanged lines hidden (view full) --- 333 usbd_xfer_set_stall(sc->sc_xfer[UMOSCOM_BULK_DT_RD]); 334 mtx_unlock(&sc->sc_mtx); 335 336 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 337 &umoscom_callback, &sc->sc_mtx); 338 if (error) { 339 goto detach; 340 } |
341 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); 342 |
|
341 return (0); 342 343detach: 344 device_printf(dev, "attach error: %s\n", usbd_errstr(error)); 345 umoscom_detach(dev); 346 return (ENXIO); 347} 348 --- 358 unchanged lines hidden --- | 343 return (0); 344 345detach: 346 device_printf(dev, "attach error: %s\n", usbd_errstr(error)); 347 umoscom_detach(dev); 348 return (ENXIO); 349} 350 --- 358 unchanged lines hidden --- |