mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
powerpc: Remove arch specific byteswappers from the MXC MMC driver
When the MXC MMUC driver is used on a Freescale MPC512x machine, it contains some additional byteswapping code (I'm assuming this is a workaround for a hardware defect). This uses the ppc specific st_le32() function, but there's no reason not to use the generic swab32() function instead. gcc is capable of generating the efficient ppc byte-reversing load/store instructions without the arch-specific helper. This patch, therefore, switches to the generic byteswap routine. Cc: Shawn Guo <[email protected]> Cc: Sascha Hauer <[email protected]> Signed-off-by: David Gibson <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
This commit is contained in:
parent
c2d5a71064
commit
7a8bf87448
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ static inline void buffer_swap32(u32 *buf, int len)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < ((len + 3) / 4); i++) {
|
||||
st_le32(buf, *buf);
|
||||
*buf = swab32(*buf);
|
||||
buf++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue