mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 23:53:52 +02:00
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
This commit is contained in:
commit
8eca76cc54
|
|
@ -344,6 +344,7 @@ static int android_bind(struct usb_composite_dev *cdev)
|
|||
dev->cdev = cdev;
|
||||
device_desc.idVendor = __constant_cpu_to_le16(get_vendor_id(dev));
|
||||
device_desc.idProduct = __constant_cpu_to_le16(get_product_id(dev));
|
||||
cdev->desc.idVendor = device_desc.idVendor;
|
||||
cdev->desc.idProduct = device_desc.idProduct;
|
||||
|
||||
return 0;
|
||||
|
|
@ -449,8 +450,10 @@ void android_enable_function(struct usb_function *f, int enable)
|
|||
|
||||
device_desc.idVendor = __constant_cpu_to_le16(get_vendor_id(dev));
|
||||
device_desc.idProduct = __constant_cpu_to_le16(get_product_id(dev));
|
||||
if (dev->cdev)
|
||||
if (dev->cdev) {
|
||||
dev->cdev->desc.idVendor = device_desc.idVendor;
|
||||
dev->cdev->desc.idProduct = device_desc.idProduct;
|
||||
}
|
||||
usb_composite_force_reset(dev->cdev);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user