Patchwork [U-Boot,4/5,v2] microblaze: Fix unaligned.h for endians

login
register
mail settings
Submitter Michal Simek
Date Oct. 7, 2011, 7:38 a.m.
Message ID <1317973139-24315-4-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/118245/
State Accepted
Headers show

Comments

Michal Simek - Oct. 7, 2011, 7:38 a.m.
Also support little endian MB.

Signed-off-by: Michal Simek <monstr@monstr.eu>

---
v2: Use asm-generic unaligned code
---
 arch/microblaze/include/asm/unaligned.h |   17 +----------------
 1 files changed, 1 insertions(+), 16 deletions(-)
Mike Frysinger - Oct. 7, 2011, 5:18 p.m.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
Michal Simek - Oct. 10, 2011, 7:18 a.m.
Mike Frysinger wrote:
> Acked-by: Mike Frysinger <vapier@gentoo.org>
> -mike

Thanks.
Michal

Patch

diff --git a/arch/microblaze/include/asm/unaligned.h b/arch/microblaze/include/asm/unaligned.h
index 785c2e9..6cecbbb 100644
--- a/arch/microblaze/include/asm/unaligned.h
+++ b/arch/microblaze/include/asm/unaligned.h
@@ -1,16 +1 @@ 
-#ifndef _ASM_MICROBLAZE_UNALIGNED_H
-#define _ASM_MICROBLAZE_UNALIGNED_H
-
-#ifdef __KERNEL__
-
-/*
- * The Microblaze can do unaligned accesses itself in big endian mode.
- */
-#include <linux/unaligned/access_ok.h>
-#include <linux/unaligned/generic.h>
-
-#define get_unaligned	__get_unaligned_be
-#define put_unaligned	__put_unaligned_be
-
-#endif	/* __KERNEL__ */
-#endif	/* _ASM_MICROBLAZE_UNALIGNED_H */
+#include <asm-generic/unaligned.h>