bna: fix firmware loading on big-endian machines
authorIvan Vecera <ivecera@redhat.com>
Thu, 28 May 2015 21:10:06 +0000 (23:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 06:46:30 +0000 (23:46 -0700)
commite236b954232808001f522c4b79df97b8c9262a4a
treedebc3abe60d9ee8a7c48141b44bf7c8cd2b81d67
parent50dce303d04617d5dbe98e513cb2b586fbf271a7
bna: fix firmware loading on big-endian machines

Firmware required by bna is stored in appropriate files as sequence
of LE32 integers. After loading by request_firmware() they need to be
byte-swapped on big-endian arches. Without this conversion the NIC
is unusable on big-endian machines.

Cc: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/cna_fwimg.c