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>
This commit is contained in:
Al Viro
2008-05-21 06:32:11 +01:00
committed by Linus Torvalds
parent 572abae844
commit f6c2fb5ccf
2 changed files with 3 additions and 3 deletions

View File

@@ -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