diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-08-08 09:04:42 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-08-16 16:54:47 +0300 |
commit | fbbf4280dae4c02d2f176a8fdac7a7d32fe76fc0 (patch) | |
tree | 2a481b675f9a4517a8b2d60deb166c648a9fb4c8 /arch/powerpc/include/asm | |
parent | cb888cdf741c958cae3e00b649fb7ed5c9bb2d49 (diff) | |
download | linux-fbbf4280dae4c02d2f176a8fdac7a7d32fe76fc0.tar.xz |
powerpc/8xx: Remove immr_map() and immr_unmap()
Since commit fb533d0c5a97 ("[POWERPC] 8xx: Infrastructure code cleanup.")
immr_map() is just returning mpc8xxx_immr pointer and immr_unmap()
do nothing.
We already have parts of code that use mpc8xxx_immr directly so get rid
of immr_map() and immr_unmap() by using mpc8xxx_immr directly. And avoid
going through local pointers that hide the pointed structure.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/633ed46f6015ff44d5599258647ea517f75d6a1d.1691474658.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/fs_pd.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/powerpc/include/asm/fs_pd.h b/arch/powerpc/include/asm/fs_pd.h index d251a55de8b0..82f0e528e21c 100644 --- a/arch/powerpc/include/asm/fs_pd.h +++ b/arch/powerpc/include/asm/fs_pd.h @@ -22,14 +22,6 @@ #define cpm2_unmap(addr) do {} while(0) #endif -#ifdef CONFIG_PPC_8xx -#include <asm/8xx_immap.h> - -#define immr_map(member) (&mpc8xx_immr->member) -#define immr_map_size(member, size) (&mpc8xx_immr->member) -#define immr_unmap(addr) do {} while (0) -#endif - static inline int uart_baudrate(void) { return get_baudrate(); |