Patchwork [U-Boot,14/26] microblaze: Fix unaligned.h for endians

login
register
mail settings
Submitter Michal Simek
Date Sept. 13, 2011, 7:10 a.m.
Message ID <1315897821-23049-15-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/114445/
State Accepted
Commit 6cdf31124ceb0d1a87b59b638a289b38a87a43e1
Headers show

Comments

Michal Simek - Sept. 13, 2011, 7:10 a.m.
Also support little endian MB.

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/include/asm/unaligned.h |   17 +----------------
 1 files changed, 1 insertions(+), 16 deletions(-)

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>