diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2023-05-22 14:22:35 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-05-31 14:05:34 -0400 |
commit | 5b70e460c967c67c2cda16303f7bd965cfa6137f (patch) | |
tree | 675a66ece1744918a6e87df637c2b9ec8483ee03 /arch/powerpc/include | |
parent | 456736346aa61e872c6241811eca6c6cab49e022 (diff) | |
download | u-boot-5b70e460c967c67c2cda16303f7bd965cfa6137f.zip u-boot-5b70e460c967c67c2cda16303f7bd965cfa6137f.tar.gz u-boot-5b70e460c967c67c2cda16303f7bd965cfa6137f.tar.bz2 |
powerpc: use asm-generic/unaligned.h
Powerpc configurations are apparently able to do unaligned accesses. But
in an attempt to clean up and handle unaligned accesses in the same way
we ignore that and use the common asm-generic/unaligned.h directly
instead.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/unaligned.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/powerpc/include/asm/unaligned.h b/arch/powerpc/include/asm/unaligned.h index 5f1b1e3..7fb482a 100644 --- a/arch/powerpc/include/asm/unaligned.h +++ b/arch/powerpc/include/asm/unaligned.h @@ -1,16 +1,2 @@ -#ifndef _ASM_POWERPC_UNALIGNED_H -#define _ASM_POWERPC_UNALIGNED_H - -#ifdef __KERNEL__ - -/* - * The PowerPC 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_POWERPC_UNALIGNED_H */ +/* SPDX-License-Identifier: GPL-2.0 */ +#include <asm-generic/unaligned.h> |