Skip to content

Commit

Permalink
USB: usb-storage fails to attach to Huawei Datacard cdrom device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fangxiaozhi authored and Greg Kroah-Hartman committed Sep 23, 2009
1 parent 5128a66 commit d0defb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/storage/initializers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d0defb8

Please sign in to comment.