From: Mark Einon Date: Tue, 22 Jan 2013 14:29:47 +0000 (+0000) Subject: staging: et131x: Fix endian bugs in et131x_get_regs() X-Git-Tag: v3.9-rc1~127^2~329 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8b0a484ccf408cafa9e2ec6a2fad6701c8deec4;p=pandora-kernel.git 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 Signed-off-by: Mark Einon Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed