[PATCH 3/4] nios2: Include asm/unaligned.h

franck.jullien at gmail.com franck.jullien at gmail.com
Wed Nov 23 16:12:27 EST 2011


From: Franck Jullien <franck.jullien at gmail.com>

drivers/ata/disk_drive.c needs it....

Signed-off-by: Franck Jullien <franck.jullien at gmail.com>
---
 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




More information about the barebox mailing list