sierra_net: Endianess bug fix.
authorLennart Sorensen <lsorense@csclub.uwaterloo.ca>
Fri, 7 Sep 2012 12:14:02 +0000 (12:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:47:01 +0000 (05:47 +0900)
commita80d46ef826b49c723cb618ca25281dc5c35b6c5
tree5aa6b7a5bbc3cc67a41aba27c32595926202b0a4
parent2e300638e5e3530f3f67ba33d8cfeb9864d395a9
sierra_net: Endianess bug fix.

[ Upstream commit 2120c52da6fe741454a60644018ad2a6abd957ac ]

I discovered I couldn't get sierra_net to work on a powerpc.  Turns out
the firmware attribute check assumes the system is little endian and
hence fails because the attributes is a 16 bit value.

Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/sierra_net.c