]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
DVB: cxusb: fix firmware patch for big endian systems
authorJin-Bong lee <jinbong.lee@samsung.com>
Thu, 8 Mar 2007 07:41:19 +0000 (08:41 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 8 Mar 2007 07:41:19 +0000 (08:41 +0100)
Without this patch, the device will not be detected after firmware download
on big endian systems.

Signed-off-by: Jin-Bong lee <jinbong.lee@samsung.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/media/dvb/dvb-usb/cxusb.c

index 356a09a699a765d80c0e2a609f66a05d75d339a4..35a9e740c7c7006e5d5c273a9c6bd626f6c83312 100644 (file)
@@ -420,8 +420,8 @@ static int bluebird_patch_dvico_firmware_download(struct usb_device *udev, const
            fw->data[BLUEBIRD_01_ID_OFFSET + 1] == USB_VID_DVICO >> 8) {
 
                /* FIXME: are we allowed to change the fw-data ? */
-               fw->data[BLUEBIRD_01_ID_OFFSET + 2] = udev->descriptor.idProduct + 1;
-               fw->data[BLUEBIRD_01_ID_OFFSET + 3] = udev->descriptor.idProduct >> 8;
+               fw->data[BLUEBIRD_01_ID_OFFSET + 2] = le16_to_cpu(udev->descriptor.idProduct) + 1;
+               fw->data[BLUEBIRD_01_ID_OFFSET + 3] = le16_to_cpu(udev->descriptor.idProduct) >> 8;
 
                return usb_cypress_load_firmware(udev,fw,CYPRESS_FX2);
        }