diff options
author | Jin-Bong lee <jinbong.lee@samsung.com> | 2007-03-08 08:41:19 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-03-08 08:41:19 +0100 |
commit | 8cf5c27708b395705f9878e3b444dd9378e14f60 (patch) | |
tree | 1fe01e630cc14371512030b099d7dddc882e1e54 | |
parent | 42e1e229bad37376acf033f14baad9fca2e8584f (diff) |
DVB: cxusb: fix firmware patch for big endian systems
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>
-rw-r--r-- | drivers/media/dvb/dvb-usb/cxusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c index 356a09a699a..35a9e740c7c 100644 --- a/drivers/media/dvb/dvb-usb/cxusb.c +++ b/drivers/media/dvb/dvb-usb/cxusb.c @@ -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); } |