retval = cdev_add(&usb_device_cdev, MKDEV(USB_DEVICE_MAJOR, 0), USB_DEVICE_MAX); 
retval = cdev_add(&usb_device_cdev, USB_DEVICE_DEV, USB_DEVICE_MAX); 
int __init usbdev_init(void){	int retval;	retval = register_chrdev_region(MKDEV(USB_DEVICE_MAJOR, 0),				        USB_DEVICE_MAX, "usb_device");	if (retval) {		err("unable to register minors for usb_device");		goto out;	}	cdev_init(&usb_device_cdev, &usbfs_device_file_operations);	retval = cdev_add(&usb_device_cdev,			  MKDEV(USB_DEVICE_MAJOR, 0), USB_DEVICE_MAX);	if (retval) {		err("unable to get usb_device major %d", USB_DEVICE_MAJOR);		unregister_chrdev_region(USB_DEVICE_MAJOR, USB_DEVICE_MAX);		goto out;	}	usb_device_class = class_create(THIS_MODULE, "usb_device");	if (IS_ERR(usb_device_class)) {		err("unable to register usb_device class");		retval = PTR_ERR(usb_device_class);		usb_device_class = NULL;		cdev_del(&usb_device_cdev);		unregister_chrdev_region(USB_DEVICE_MAJOR, USB_DEVICE_MAX);	}out:	return retval;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/fad21bdf56a25e1cb3e92bba33349de368e8f0b0/devio.c/buggy/drivers/usb/core/devio.c