}  /* register the generic driver, if we should */ result = usb_serial_generic_register(debug); if (result < 0) { err("%s - registering generic driver failed", __FUNCTION__); goto exit_generic; 
static int __init usb_serial_init(void){	int i;	int result;	usb_serial_tty_driver = alloc_tty_driver(SERIAL_TTY_MINORS);	if (!usb_serial_tty_driver)		return -ENOMEM;	/* Initialize our global data */	for (i = 0; i < SERIAL_TTY_MINORS; ++i) {		serial_table[i] = NULL;	}	result = bus_register(&usb_serial_bus_type);	if (result) {		err("%s - registering bus driver failed", __FUNCTION__);		goto exit_bus;	}	/* register the generic driver, if we should */	result = usb_serial_generic_register(debug);	if (result < 0) {		err("%s - registering generic driver failed", __FUNCTION__);		goto exit_generic;	}	usb_serial_tty_driver->owner = THIS_MODULE;	usb_serial_tty_driver->driver_name = "usbserial";	usb_serial_tty_driver->devfs_name = "usb/tts/";	usb_serial_tty_driver->name = 	"ttyUSB";	usb_serial_tty_driver->major = SERIAL_TTY_MAJOR;	usb_serial_tty_driver->minor_start = 0;	usb_serial_tty_driver->type = TTY_DRIVER_TYPE_SERIAL;	usb_serial_tty_driver->subtype = SERIAL_TYPE_NORMAL;	usb_serial_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS;	usb_serial_tty_driver->init_termios = tty_std_termios;	usb_serial_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL;	tty_set_operations(usb_serial_tty_driver, &serial_ops);	result = tty_register_driver(usb_serial_tty_driver);	if (result) {		err("%s - tty_register_driver failed", __FUNCTION__);		goto exit_reg_driver;	}	/* register the USB driver */	result = usb_register(&usb_serial_driver);	if (result < 0) {		err("%s - usb_register failed", __FUNCTION__);		goto exit_tty;	}	info(DRIVER_DESC " " DRIVER_VERSION);	return result;exit_tty:	tty_unregister_driver(usb_serial_tty_driver);exit_reg_driver:	usb_serial_generic_deregister();exit_generic:	bus_unregister(&usb_serial_bus_type);exit_bus:	err ("%s - returning with error %d", __FUNCTION__, result);	put_tty_driver(usb_serial_tty_driver);	return result;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/06299db3e7f857a4985cf70dc1a5049ec12482c1/usb-serial.c/clean/drivers/usb/serial/usb-serial.c