From: Franck Jullien <franck.jullien@xxxxxxxxx> drivers/ata/disk_drive.c needs it.... Signed-off-by: Franck Jullien <franck.jullien@xxxxxxxxx> --- arch/nios2/include/asm/unaligned.h | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/include/asm/unaligned.h diff --git a/arch/nios2/include/asm/unaligned.h b/arch/nios2/include/asm/unaligned.h new file mode 100644 index 0000000..7615e8a --- /dev/null +++ b/arch/nios2/include/asm/unaligned.h @@ -0,0 +1,15 @@ +#ifndef _ASM_NIOS_UNALIGNED_H +#define _ASM_NIOS_UNALIGNED_H + +#include <linux/unaligned/le_byteshift.h> +#include <linux/unaligned/be_byteshift.h> +#include <linux/unaligned/generic.h> + +/* + * Select endianness + */ + +#define get_unaligned __get_unaligned_le +#define put_unaligned __put_unaligned_le + +#endif /* _ASM_NIOS_UNALIGNED_H */ -- 1.7.7 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox