summaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/irda-usb.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2008-05-21 07:32:11 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-22 01:55:59 +0200
commitf6c2fb5ccff51e19850b1aca024a3b20b16a81e9 (patch)
tree9a0bc64dbbdd78f4bb0a3ddb79a5dd63c8bbe5ca /drivers/net/irda/irda-usb.c
parentsbus bpp: instances missed in s/dev_name/bpp_dev_name/ (diff)
downloadlinux-f6c2fb5ccff51e19850b1aca024a3b20b16a81e9.tar.xz
linux-f6c2fb5ccff51e19850b1aca024a3b20b16a81e9.zip
irda-usb endianness annotations and fixes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/irda/irda-usb.c')
-rw-r--r--drivers/net/irda/irda-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c
index 9081234ab458..6f50ed7b183f 100644
--- a/drivers/net/irda/irda-usb.c
+++ b/drivers/net/irda/irda-usb.c
@@ -1120,7 +1120,7 @@ static int stir421x_patch_device(struct irda_usb_cb *self)
}
}
- if (self->usbdev->descriptor.bcdDevice == fw_version) {
+ if (self->usbdev->descriptor.bcdDevice == cpu_to_le16(fw_version)) {
/*
* If we're here, we've found a correct patch
* The actual image starts after the "STMP" keyword