USB: io_edgeport: fix the reported firmware major and minor
authorBjørn Mork <bjorn@mork.no>
Mon, 17 Jan 2011 13:19:37 +0000 (14:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 00:40:58 +0000 (16:40 -0800)
commit271c1150b4f8e1685e5a8cbf76e329ec894481da
tree4601bb0615eb96da0b03249630156088310704ba
parentebf53826e105f488f4f628703a108e98940d1dc5
USB: io_edgeport: fix the reported firmware major and minor

The major and minor number saved in the product_info structure
were copied from the address instead of the data, causing an
inconsistency in the reported versions during firmware loading:

 usb 4-1: firmware: requesting edgeport/down.fw
 /usr/src/linux/drivers/usb/serial/io_edgeport.c: downloading firmware version (930) 1.16.4
 [..]
 /usr/src/linux/drivers/usb/serial/io_edgeport.c: edge_startup - time 3 4328191260
 /usr/src/linux/drivers/usb/serial/io_edgeport.c:   FirmwareMajorVersion  0.0.4

This can cause some confusion whether firmware loaded successfully
or not.

Cc: stable@kernel.org
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/io_edgeport.c