udev = interface_to_usbdev(intf);
+ /* Device has already been reset; its configuration was chosen.
+ * If this fault happens, use a hotplug script to choose the
+ * right configuration (write bConfigurationValue in sysfs).
+ */
+ if (udev->actconfig->desc.bConfigurationValue != 1) {
+ dev_err(&intf->dev, "device config is #%d, need #1\n",
+ udev->actconfig->desc.bConfigurationValue);
+ return -ENODEV;
+ }
+
+
+ if (intf->altsetting->desc.bInterfaceNumber != 1) return -ENODEV;
+
if (!(ttusb = kmalloc(sizeof(struct ttusb), GFP_KERNEL)))
return -ENOMEM;