summaryrefslogtreecommitdiff
path: root/arch/microblaze/include/asm/unaligned.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-02-18 16:29:20 +0300
committerMichal Simek <monstr@monstr.eu>2011-03-09 10:09:53 +0300
commit601149775158ea825326734c2db5d90190249bd7 (patch)
treee14cb4399d844c1f2190ade041eec2ca90d06107 /arch/microblaze/include/asm/unaligned.h
parentc06b3a068223cb885d85ac4f6c31e870ca2b5aac (diff)
downloadlinux-601149775158ea825326734c2db5d90190249bd7.tar.xz
microblaze: Fix unaligned.h for endians
Synchronized with mips unaligned.h. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/unaligned.h')
-rw-r--r--arch/microblaze/include/asm/unaligned.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/microblaze/include/asm/unaligned.h b/arch/microblaze/include/asm/unaligned.h
index 2b97cbe500e9..b162ed880495 100644
--- a/arch/microblaze/include/asm/unaligned.h
+++ b/arch/microblaze/include/asm/unaligned.h
@@ -12,18 +12,19 @@
# 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 */