]> git.sur5r.net Git - u-boot/blobdiff - include/asm-i386/byteorder.h
ppc/85xx: Disable all async interrupt sources when we boot
[u-boot] / include / asm-i386 / byteorder.h
index bbfb629fae264b31cf60b2221cb38fedcf71ad62..7dfeb8bbed2b4cdc69a0e4c3943b4ad0e9d241ed 100644 (file)
@@ -5,12 +5,8 @@
 
 #ifdef __GNUC__
 
-/* For avoiding bswap on i386 */
-#ifdef __KERNEL__
-#include <linux/config.h>
-#endif
 
-static __inline__ __const__ __u32 ___arch__swab32(__u32 x)
+static __inline__ __u32 ___arch__swab32(__u32 x)
 {
 #ifdef CONFIG_X86_BSWAP
        __asm__("bswap %0" : "=r" (x) : "0" (x));
@@ -24,7 +20,7 @@ static __inline__ __const__ __u32 ___arch__swab32(__u32 x)
        return x;
 }
 
-static __inline__ __const__ __u16 ___arch__swab16(__u16 x)
+static __inline__ __u16 ___arch__swab16(__u16 x)
 {
        __asm__("xchgb %b0,%h0"         /* swap bytes           */ \
                : "=q" (x) \