]> git.hungrycats.org Git - linux/commitdiff
USB: usb-storage fails to attach to Huawei Datacard cdrom device
authorfangxiaozhi <huananhu@huawei.com>
Fri, 7 Aug 2009 04:30:35 +0000 (12:30 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:01 +0000 (09:32 -0700)
commit d0defb855c8504c49b92bdc0203689ce9b4cf7ba upstream.

In this patch, we always make the return value of function
usb_stor_huawei_e220_init to be zero. Then it will not prevent usb-storage
driver from attaching to the CDROM device of Huawei Datacard.

Signed-off-by: fangxiaozhi <huananhu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/initializers.c

index ec17c96371afc7a71297ef8e8cbfd17299a0c5e3..105d900150c1a80155c2afcec6a61f4fb07fd0b4 100644 (file)
@@ -102,5 +102,5 @@ int usb_stor_huawei_e220_init(struct us_data *us)
                                      USB_TYPE_STANDARD | USB_RECIP_DEVICE,
                                      0x01, 0x0, NULL, 0x0, 1000);
        US_DEBUGP("Huawei mode set result is %d\n", result);
-       return (result ? 0 : -ENODEV);
+       return 0;
 }