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

login
register
mail settings
Submitter Mike Frysinger
Date Jan. 21, 2010, 10:01 a.m.
Message ID <1264068076-4504-3-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/71715/
State Not Applicable
Delegated to: Albert ARIBAUD
Headers show

Comments

Mike Frysinger - Jan. 21, 2010, 10:01 a.m.
Signed-off-by: Mike Frysinger <vapier@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(-)

Patch

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>