]> git.dujemihanovic.xyz Git - linux.git/commit
powerpc/8xx: Remove immr_map() and immr_unmap()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 8 Aug 2023 06:04:42 +0000 (08:04 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2023 13:54:47 +0000 (23:54 +1000)
commitfbbf4280dae4c02d2f176a8fdac7a7d32fe76fc0
tree2a481b675f9a4517a8b2d60deb166c648a9fb4c8
parentcb888cdf741c958cae3e00b649fb7ed5c9bb2d49
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
arch/powerpc/include/asm/fs_pd.h
arch/powerpc/platforms/8xx/cpm1.c
arch/powerpc/platforms/8xx/m8xx_setup.c