staging: et131x: Fix endian bugs in et131x_get_regs()
authorMark Einon <mark.einon@gmail.com>
Tue, 22 Jan 2013 14:29:47 +0000 (14:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2013 16:58:44 +0000 (08:58 -0800)
commitc8b0a484ccf408cafa9e2ec6a2fad6701c8deec4
treee05d005d84f92c2fbe179bf2e1bb0883f80ca21e
parentc095454e4b6acc8a5e7908647ec60d6088be90c8
staging: et131x: Fix endian bugs in et131x_get_regs()

et131x_get_regs() calls et131x_mii_read(), passing the address of a u32
which is cast to a (u16 *). This works fine for little endian systems,
but not for big endian. Change so that the types are cast, not pointers
to the types.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c