patch-2.3.15 linux/drivers/usb/usb_scsi.c

Next file: linux/drivers/usb/uss720.c
Previous file: linux/drivers/usb/usb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.14/linux/drivers/usb/usb_scsi.c linux/drivers/usb/usb_scsi.c
@@ -1108,9 +1108,9 @@
 	    protocol = US_PR_CB;
 	    subclass = US_SC_8070;	/* an assumption */
 	} else if (dev->descriptor.bDeviceClass != 0 ||
-	    dev->config->altsetting->interface->bInterfaceClass != 8 ||
-	    dev->config->altsetting->interface->bInterfaceSubClass < US_SC_MIN ||
-	    dev->config->altsetting->interface->bInterfaceSubClass > US_SC_MAX) {
+	    dev->config[0].interface[0].altsetting[0].bInterfaceClass != 8 ||
+	    dev->config[0].interface[0].altsetting[0].bInterfaceSubClass < US_SC_MIN ||
+	    dev->config[0].interface[0].altsetting[0].bInterfaceSubClass > US_SC_MAX) {
 	    return -1;
 	}
 
@@ -1143,7 +1143,7 @@
 	memset(ss, 0, sizeof(struct us_data));
     }
 
-    interface = dev->config->altsetting->interface;
+    interface = &dev->config[0].interface[0].altsetting[0];
     ss->filter = filter;
     ss->fdata = fdata;
     ss->flags = flags;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)