[U-Boot] [PATCH 3/3] asm-arm/unaligned.h: switch to asm-generic/unaligned.h

Mike Frysinger vapier at gentoo.org
Thu Jan 21 11:01:16 CET 2010


Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
note: havent compile tested this, but it should be straight forward ...

 include/asm-arm/unaligned.h |   20 +-------------------
 1 files changed, 1 insertions(+), 19 deletions(-)

diff --git a/include/asm-arm/unaligned.h b/include/asm-arm/unaligned.h
index 44593a8..6cecbbb 100644
--- a/include/asm-arm/unaligned.h
+++ b/include/asm-arm/unaligned.h
@@ -1,19 +1 @@
-#ifndef _ASM_ARM_UNALIGNED_H
-#define _ASM_ARM_UNALIGNED_H
-
-#include <linux/unaligned/le_byteshift.h>
-#include <linux/unaligned/be_byteshift.h>
-#include <linux/unaligned/generic.h>
-
-/*
- * Select endianness
- */
-#ifndef __ARMEB__
-#define get_unaligned	__get_unaligned_le
-#define put_unaligned	__put_unaligned_le
-#else
-#define get_unaligned	__get_unaligned_be
-#define put_unaligned	__put_unaligned_be
-#endif
-
-#endif /* _ASM_ARM_UNALIGNED_H */
+#include <asm-generic/unaligned.h>
-- 
1.6.6



More information about the U-Boot mailing list