]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/ubi/crc32.c
ARM: OMAP4+: Change the PRCM structure prototype common for all Socs
[u-boot] / drivers / mtd / ubi / crc32.c
index 5273ca3e051081d57334a94fb06c6e82dfcb16d0..ab439b3e208578383252371071ca6e27cc966aae 100644 (file)
 #include "crc32defs.h"
 #define CRC_LE_BITS 8
 
-# define __force
-#ifndef __constant_cpu_to_le32
-#define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x))
-#endif
-#ifndef __constant_le32_to_cpu
-#define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x))
-#endif
-
 #if CRC_LE_BITS == 8
-#define tole(x) __constant_cpu_to_le32(x)
-#define tobe(x) __constant_cpu_to_be32(x)
+#define tole(x) cpu_to_le32(x)
+#define tobe(x) cpu_to_be32(x)
 #else
 #define tole(x) (x)
 #define tobe(x) (x)
@@ -97,7 +89,7 @@ u32 crc32_le(u32 crc, unsigned char const *p, size_t len)
 # else
 #  define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8)
 # endif
-    //printf("Crc32_le crc=%x\n",crc);
+       /* printf("Crc32_le crc=%x\n",crc); */
        crc = __cpu_to_le32(crc);
        /* Align it */
        if((((long)b)&3 && len)){