]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/usb/misc/usbtest.c
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6
[mv-sheeva.git] / drivers / usb / misc / usbtest.c
index 3dab0c0b196f56a4f3c625b883d8064ffa900992..a21cce6f7403e723e42adad28524789ac807a4e4 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[] = {
 
        /*-------------------------------------------------------------*/