ucycom.c (214761) | ucycom.c (214843) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/dev/usb/serial/ucycom.c 214761 2010-11-03 21:50:49Z n_hibma $"); | 2__FBSDID("$FreeBSD: head/sys/dev/usb/serial/ucycom.c 214843 2010-11-05 19:12:48Z n_hibma $"); |
3 4/*- 5 * Copyright (c) 2004 Dag-Erling Co�dan Sm�rgrav 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 256 unchanged lines hidden (view full) --- 267 sc, &sc->sc_mtx); 268 if (error) { 269 device_printf(dev, "allocating USB " 270 "transfers failed\n"); 271 goto detach; 272 } 273 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 274 &ucycom_callback, &sc->sc_mtx); | 3 4/*- 5 * Copyright (c) 2004 Dag-Erling Co�dan Sm�rgrav 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 256 unchanged lines hidden (view full) --- 267 sc, &sc->sc_mtx); 268 if (error) { 269 device_printf(dev, "allocating USB " 270 "transfers failed\n"); 271 goto detach; 272 } 273 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 274 &ucycom_callback, &sc->sc_mtx); |
275 | |
276 if (error) { 277 goto detach; 278 } | 275 if (error) { 276 goto detach; 277 } |
278 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); 279 |
|
279 if (urd_ptr) { 280 free(urd_ptr, M_USBDEV); 281 } | 280 if (urd_ptr) { 281 free(urd_ptr, M_USBDEV); 282 } |
283 |
|
282 return (0); /* success */ 283 284detach: 285 if (urd_ptr) { 286 free(urd_ptr, M_USBDEV); 287 } 288 ucycom_detach(dev); 289 return (ENXIO); --- 301 unchanged lines hidden --- | 284 return (0); /* success */ 285 286detach: 287 if (urd_ptr) { 288 free(urd_ptr, M_USBDEV); 289 } 290 ucycom_detach(dev); 291 return (ENXIO); --- 301 unchanged lines hidden --- |