powerpc/cpm2: Remove cpm2_map() and cpm2_unmap()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 8 Aug 2023 06:04:43 +0000 (08:04 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2023 13:54:47 +0000 (23:54 +1000)
commit7768716d2f1906c9258ed4b39584da6317020594
tree2da0a064edb42e8232402e18890e201bb375fb7a
parentfbbf4280dae4c02d2f176a8fdac7a7d32fe76fc0
powerpc/cpm2: Remove cpm2_map() and cpm2_unmap()

Since commit 449012daa92a ("[POWERPC] cpm2: Infrastructure code
cleanup.") cpm2_map() is just returning cpm2_immr pointer and
cpm2_unmap() does nothing.

We already have parts of code that use cpm2_immr directly so get rid
of cpm2_map() and cpm2_unmap() by using cpm2_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/9fe6ff7284e9f968b12abe7de7c08d7ea40e29d6.1691474658.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/fs_pd.h
arch/powerpc/sysdev/cpm2.c
arch/powerpc/sysdev/cpm2_pic.c