Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[pandora-kernel.git] / drivers / usb / misc / usbtest.c
index 3dab0c0..a21cce6 100644 (file)
@@ -1580,10 +1580,6 @@ usbtest_ioctl (struct usb_interface *intf, unsigned int code, void *buf)
                return -ERESTARTSYS;
 
        /* FIXME: What if a system sleep starts while a test is running? */
-       if (!intf->is_active) {
-               mutex_unlock(&dev->lock);
-               return -EHOSTUNREACH;
-       }
 
        /* some devices, like ez-usb default devices, need a non-default
         * altsetting to have any active endpoints.  some tests change
@@ -2101,7 +2097,7 @@ static struct usbtest_info generic_info = {
 #endif
 
 
-static struct usb_device_id id_table [] = {
+static const struct usb_device_id id_table[] = {
 
        /*-------------------------------------------------------------*/