parisc: Remove memcpy_toio and memset_io
PATCH 1/1 parisc: Remove memcpy_toio and memset_io
Recently new functions for IO memcpy and IO memset were added in libs/iomem_copy.c. So, remove the arch specific implementations, to fall back to the generic ones which do exactly the same. Keep memcpy_fromio for now, because it's slight more optimized by doing 'u16' accesses if the buffer is aligned this way.
Signed-off-by Julian Vetter <[email protected]>
--- arch/parisc/include/asm/io.h | 4 --- arch/parisc/lib/io.c | 47 ------------------------------------ 2 files changed, 51 deletions(-)
arch/parisc/include/asm/io.h +0 -4
@@ -135,12 +135,8 @@ static inline void gsc_writeq(unsigned long long val, unsigned long addr)#define pci_iounmap pci_iounmap -void memset_io (volatile void __iomem *addr,unsigned char val,int count);void memcpy_fromio (void *dst,const volatile void __iomem *src,int count); -void memcpy_toio (volatile void __iomem *dst,const void *src,int count); -#define memset_io memset_io#define memcpy_fromio memcpy_fromio -#define memcpy_toio memcpy_toio/* Port-space IO */
arch/parisc/lib/io.c +0 -47
59 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 7 lines · Julian Vetter
Recently new functions for IO memcpy and IO memset were added in
libs/iomem_copy.c. So, remove the arch specific implementations, to fall back to the generic ones which do exactly the same. Keepmemcpy_fromiofor now, because it's slight more optimized by doing 'u16' accesses if the buffer is aligned this way.Signed-off-by Julian Vetter <[email protected]>
Reviewed-by Arnd Bergmann <[email protected]>