microblaze: Fix unaligned.h for endians
authorMichal Simek <monstr@monstr.eu>
Fri, 18 Feb 2011 13:29:20 +0000 (14:29 +0100)
committerMichal Simek <monstr@monstr.eu>
Wed, 9 Mar 2011 07:09:53 +0000 (08:09 +0100)
Synchronized with mips unaligned.h.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/unaligned.h

index 2b97cbe500e9a4e92dc6f556129dc7d8b630d8fe..b162ed880495d1636491d2f8ed390960ab2e90c9 100644 (file)
 
 # ifdef __KERNEL__
 
-# include <linux/unaligned/be_byteshift.h>
-# include <linux/unaligned/le_byteshift.h>
-# include <linux/unaligned/generic.h>
-
-
 #  ifdef __MICROBLAZEEL__
+#   include <linux/unaligned/le_struct.h>
+#   include <linux/unaligned/be_byteshift.h>
 #   define get_unaligned       __get_unaligned_le
 #   define put_unaligned       __put_unaligned_le
 #  else
+#   include <linux/unaligned/be_struct.h>
+#   include <linux/unaligned/le_byteshift.h>
 #   define get_unaligned       __get_unaligned_be
 #   define put_unaligned       __put_unaligned_be
 #  endif
 
+# include <linux/unaligned/generic.h>
+
 # endif        /* __KERNEL__ */
 #endif /* _ASM_MICROBLAZE_UNALIGNED_H */