aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/initializers.c
diff options
context:
space:
mode:
authorfangxiaozhi <huananhu@huawei.com>2009-08-07 00:30:35 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 09:46:32 -0400
commitd0defb855c8504c49b92bdc0203689ce9b4cf7ba (patch)
treeec2481026c955a7ad20be3b306c0e4fb5040775b /drivers/usb/storage/initializers.c
parent5128a66c6605d8178f69b7a8f2a70060933a26b4 (diff)
USB: usb-storage fails to attach to Huawei Datacard cdrom device
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> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/initializers.c')
-rw-r--r--drivers/usb/storage/initializers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/initializers.c b/drivers/usb/storage/initializers.c
index ec17c96371af..105d900150c1 100644
--- a/drivers/usb/storage/initializers.c
+++ b/drivers/usb/storage/initializers.c
@@ -102,5 +102,5 @@ int usb_stor_huawei_e220_init(struct us_data *us)
102 USB_TYPE_STANDARD | USB_RECIP_DEVICE, 102 USB_TYPE_STANDARD | USB_RECIP_DEVICE,
103 0x01, 0x0, NULL, 0x0, 1000); 103 0x01, 0x0, NULL, 0x0, 1000);
104 US_DEBUGP("Huawei mode set result is %d\n", result); 104 US_DEBUGP("Huawei mode set result is %d\n", result);
105 return (result ? 0 : -ENODEV); 105 return 0;
106} 106}