Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354727
b: refs/heads/master
c: cd06095
h: refs/heads/master
i:
  354725: 8ab1e6f
  354723: 24faf3c
  354719: 92e68d6
v: v3
  • Loading branch information
fangxiaozhi authored and Greg Kroah-Hartman committed Feb 8, 2013
1 parent d50193b commit 61ad7e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9742aecda4d02976535051db4af4830bd98373a1
refs/heads/master: cd060956c5e97931c3909e4a808508469c0bb9f6
4 changes: 2 additions & 2 deletions trunk/drivers/usb/storage/initializers.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static int usb_stor_huawei_dongles_pid(struct us_data *us)
int idProduct;

idesc = &us->pusb_intf->cur_altsetting->desc;
idProduct = us->pusb_dev->descriptor.idProduct;
idProduct = le16_to_cpu(us->pusb_dev->descriptor.idProduct);
/* The first port is CDROM,
* means the dongle in the single port mode,
* and a switch command is required to be sent. */
Expand All @@ -169,7 +169,7 @@ int usb_stor_huawei_init(struct us_data *us)
int result = 0;

if (usb_stor_huawei_dongles_pid(us)) {
if (us->pusb_dev->descriptor.idProduct >= 0x1446)
if (le16_to_cpu(us->pusb_dev->descriptor.idProduct) >= 0x1446)
result = usb_stor_huawei_scsi_init(us);
else
result = usb_stor_huawei_feature_init(us);
Expand Down

0 comments on commit 61ad7e0

Please sign in to comment.