staging: ft1000-pcmcia: Fix ft1000_dnld() to work also on 64bit architectures.
authorpixo <pixo@pixo-LIFEBOOK-E8310.(none)>
Wed, 23 Mar 2011 07:08:08 +0000 (08:08 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Apr 2011 04:33:27 +0000 (21:33 -0700)
commit14e5d8ef5beedf47005b1433096c0e30815da9b3
tree1e87e7ac01095f4201e98cf5ebfc3ed4181fa129
parentea4fca42b9ba61c68f77a783fcae13368a71b6bc
staging: ft1000-pcmcia: Fix ft1000_dnld() to work also on 64bit architectures.

Firmware file needs to be read by 4bytes also on 64 bit architectures.
Change long type to u32 and also extend checking. Tested on 32 and also
64 bit architectures.

Signed-off-by: Stano Lanci <chl.pixo@gmail.com>
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Tested-by: Stano Lanci <chl.pixo@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c