]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/serial/ti_usb_3410_5052.c
Merge tag 'for-usb-2013-08-15-step-1' into for-usb-next
[~andy/linux] / drivers / usb / serial / ti_usb_3410_5052.c
index 5c07d55ece7ad530dd8662f836fe156faf8695f0..760b78560f67fd7e7d905d53dff2cb7a46f2919f 100644 (file)
@@ -1463,14 +1463,15 @@ static int ti_download_firmware(struct ti_device *tdev)
        char buf[32];
 
        /* try ID specific firmware first, then try generic firmware */
-       sprintf(buf, "ti_usb-v%04x-p%04x.fw", dev->descriptor.idVendor,
-           dev->descriptor.idProduct);
+       sprintf(buf, "ti_usb-v%04x-p%04x.fw",
+                       le16_to_cpu(dev->descriptor.idVendor),
+                       le16_to_cpu(dev->descriptor.idProduct));
        status = request_firmware(&fw_p, buf, &dev->dev);
 
        if (status != 0) {
                buf[0] = '\0';
-               if (dev->descriptor.idVendor == MTS_VENDOR_ID) {
-                       switch (dev->descriptor.idProduct) {
+               if (le16_to_cpu(dev->descriptor.idVendor) == MTS_VENDOR_ID) {
+                       switch (le16_to_cpu(dev->descriptor.idProduct)) {
                        case MTS_CDMA_PRODUCT_ID:
                                strcpy(buf, "mts_cdma.fw");
                                break;