diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-06-14 10:24:43 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-14 10:24:43 -0400 |
commit | 508fb69886bde5a346f2fe0b550eb49e969f0ac5 (patch) | |
tree | e55e01b13ce992d489a13ed15edd8c86afd3d36c | |
parent | 5db455bd55654c8a963191d6458ff1c20993f8bb (diff) |
sh: Convert to asm-generic/unaligned.h.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/include/asm/unaligned.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/sh/include/asm/unaligned.h b/arch/sh/include/asm/unaligned.h index 8c0ad5e4487a..7d14e0669961 100644 --- a/arch/sh/include/asm/unaligned.h +++ b/arch/sh/include/asm/unaligned.h | |||
@@ -6,19 +6,7 @@ | |||
6 | #include <asm/unaligned-sh4a.h> | 6 | #include <asm/unaligned-sh4a.h> |
7 | #else | 7 | #else |
8 | /* Otherwise, SH can't handle unaligned accesses. */ | 8 | /* Otherwise, SH can't handle unaligned accesses. */ |
9 | #ifdef __LITTLE_ENDIAN__ | 9 | #include <asm-generic/unaligned.h> |
10 | # include <linux/unaligned/le_struct.h> | ||
11 | # include <linux/unaligned/be_byteshift.h> | ||
12 | # include <linux/unaligned/generic.h> | ||
13 | # define get_unaligned __get_unaligned_le | ||
14 | # define put_unaligned __put_unaligned_le | ||
15 | #else | ||
16 | # include <linux/unaligned/be_struct.h> | ||
17 | # include <linux/unaligned/le_byteshift.h> | ||
18 | # include <linux/unaligned/generic.h> | ||
19 | # define get_unaligned __get_unaligned_be | ||
20 | # define put_unaligned __put_unaligned_be | ||
21 | #endif | ||
22 | #endif | 10 | #endif |
23 | 11 | ||
24 | #endif /* _ASM_SH_UNALIGNED_H */ | 12 | #endif /* _ASM_SH_UNALIGNED_H */ |