]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/storage/initializers.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
[linux-2.6-omap-h63xx.git] / drivers / usb / storage / initializers.c
index ee5b42aa53633b159b259d95bbf208e866a48492..2dd9bd4bff56edceec8962d79ba17f72efad8854 100644 (file)
@@ -1,6 +1,4 @@
 /* Special Initializers for certain USB Mass Storage devices
- *
- * $Id: initializers.c,v 1.2 2000/09/06 22:35:57 mdharm Exp $
  *
  * Current development and maintenance by:
  *   (c) 1999, 2000 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
@@ -66,7 +64,8 @@ int usb_stor_ucr61s2b_init(struct us_data *us)
 {
        struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap*) us->iobuf;
        struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf;
-       int res, partial;
+       int res;
+       unsigned int partial;
        static char init_string[] = "\xec\x0a\x06\x00$PCCHIPS";
 
        US_DEBUGP("Sending UCR-61S2B initialization packet...\n");
@@ -96,11 +95,10 @@ int usb_stor_huawei_e220_init(struct us_data *us)
 {
        int result;
 
-       us->iobuf[0] = 0x1;
        result = usb_stor_control_msg(us, us->send_ctrl_pipe,
                                      USB_REQ_SET_FEATURE,
                                      USB_TYPE_STANDARD | USB_RECIP_DEVICE,
-                                     0x01, 0x0, us->iobuf, 0x1, 1000);
+                                     0x01, 0x0, NULL, 0x0, 1000);
        US_DEBUGP("usb_control_msg performing result is %d\n", result);
        return (result ? 0 : -1);
 }