Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36

This commit is contained in:
Rebecca Schultz Zavin 2011-02-24 11:49:50 -08:00
commit 8eca76cc54

View File

@ -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);
}
}