Commit f829e7a3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Herbert Xu

crypto: caam - writel() arguments are swapped

My guess is that this little endian configuration is never found in real
life, but if it were then the writel() arguments are in the wrong order
so the driver would crash immediately.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 645af2e4
...@@ -74,10 +74,10 @@ ...@@ -74,10 +74,10 @@
#endif #endif
#else #else
#ifdef __LITTLE_ENDIAN #ifdef __LITTLE_ENDIAN
#define wr_reg32(reg, data) __raw_writel(reg, data) #define wr_reg32(reg, data) __raw_writel(data, reg)
#define rd_reg32(reg) __raw_readl(reg) #define rd_reg32(reg) __raw_readl(reg)
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT
#define wr_reg64(reg, data) __raw_writeq(reg, data) #define wr_reg64(reg, data) __raw_writeq(data, reg)
#define rd_reg64(reg) __raw_readq(reg) #define rd_reg64(reg) __raw_readq(reg)
#endif #endif
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment