microblaze: Fix unaligned.h for endians

Synchronized with mips unaligned.h.

Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
Michal Simek 2011-02-18 14:29:20 +01:00
parent c06b3a0682
commit 6011497751
1 changed files with 6 additions and 5 deletions

View File

@ -12,18 +12,19 @@
# ifdef __KERNEL__ # ifdef __KERNEL__
# include <linux/unaligned/be_byteshift.h>
# include <linux/unaligned/le_byteshift.h>
# include <linux/unaligned/generic.h>
# ifdef __MICROBLAZEEL__ # ifdef __MICROBLAZEEL__
# include <linux/unaligned/le_struct.h>
# include <linux/unaligned/be_byteshift.h>
# define get_unaligned __get_unaligned_le # define get_unaligned __get_unaligned_le
# define put_unaligned __put_unaligned_le # define put_unaligned __put_unaligned_le
# else # else
# include <linux/unaligned/be_struct.h>
# include <linux/unaligned/le_byteshift.h>
# define get_unaligned __get_unaligned_be # define get_unaligned __get_unaligned_be
# define put_unaligned __put_unaligned_be # define put_unaligned __put_unaligned_be
# endif # endif
# include <linux/unaligned/generic.h>
# endif /* __KERNEL__ */ # endif /* __KERNEL__ */
#endif /* _ASM_MICROBLAZE_UNALIGNED_H */ #endif /* _ASM_MICROBLAZE_UNALIGNED_H */