diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-02-20 21:10:34 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-02-20 21:10:34 -0500 |
commit | 3163e57be54a44818c4bdaafa54f1f5a23dd5f4f (patch) | |
tree | 67656bdc0737f980b78e773e64bcc65a85665920 | |
parent | 3f9c226d66a931318cf7bfcf861ce191007013e6 (diff) | |
download | mediapointer-dvb-s2-3163e57be54a44818c4bdaafa54f1f5a23dd5f4f.tar.gz mediapointer-dvb-s2-3163e57be54a44818c4bdaafa54f1f5a23dd5f4f.tar.bz2 |
cxusb: fix firmware patch for big endian systems
From: Jin-Bong lee <jinbong.lee@samsung.com>
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>
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/cxusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/cxusb.c b/linux/drivers/media/dvb/dvb-usb/cxusb.c index ddfe92a94..540ba3891 100644 --- a/linux/drivers/media/dvb/dvb-usb/cxusb.c +++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c @@ -469,9 +469,9 @@ static int bluebird_patch_dvico_firmware_download(struct usb_device *udev, fw->data[BLUEBIRD_01_ID_OFFSET + 1] == USB_VID_DVICO >> 8) { fw->data[BLUEBIRD_01_ID_OFFSET + 2] = - udev->descriptor.idProduct + 1; + le16_to_cpu(udev->descriptor.idProduct) + 1; fw->data[BLUEBIRD_01_ID_OFFSET + 3] = - udev->descriptor.idProduct >> 8; + le16_to_cpu(udev->descriptor.idProduct) >> 8; return usb_cypress_load_firmware(udev, fw, CYPRESS_FX2); } |