umct.c (214761) | umct.c (214843) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/dev/usb/serial/umct.c 214761 2010-11-03 21:50:49Z n_hibma $"); | 2__FBSDID("$FreeBSD: head/sys/dev/usb/serial/umct.c 214843 2010-11-05 19:12:48Z n_hibma $"); |
3 4/*- 5 * Copyright (c) 2003 Scott Long 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: --- 281 unchanged lines hidden (view full) --- 292 sc->sc_obufsize = 16; 293 } 294 } 295 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 296 &umct_callback, &sc->sc_mtx); 297 if (error) { 298 goto detach; 299 } | 3 4/*- 5 * Copyright (c) 2003 Scott Long 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: --- 281 unchanged lines hidden (view full) --- 292 sc->sc_obufsize = 16; 293 } 294 } 295 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 296 &umct_callback, &sc->sc_mtx); 297 if (error) { 298 goto detach; 299 } |
300 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); 301 |
|
300 return (0); /* success */ 301 302detach: 303 umct_detach(dev); 304 return (ENXIO); /* failure */ 305} 306 307static int --- 331 unchanged lines hidden --- | 302 return (0); /* success */ 303 304detach: 305 umct_detach(dev); 306 return (ENXIO); /* failure */ 307} 308 309static int --- 331 unchanged lines hidden --- |