diff options
author | Brian Gerst <brgerst@gmail.com> | 2010-02-05 09:37:07 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-05 13:57:33 -0800 |
commit | 6175ddf06b6172046a329e3abfd9c901a43efd2e (patch) | |
tree | d721460533e8a4b083f5eeec8f0f5a2ec2062315 /arch/x86/include/asm/io_32.h | |
parent | 2b4df4d4f7de1a834d252c7da3197fce634cbf0e (diff) | |
download | kernel_samsung_smdk4412-6175ddf06b6172046a329e3abfd9c901a43efd2e.zip kernel_samsung_smdk4412-6175ddf06b6172046a329e3abfd9c901a43efd2e.tar.gz kernel_samsung_smdk4412-6175ddf06b6172046a329e3abfd9c901a43efd2e.tar.bz2 |
x86: Clean up mem*io functions.
Iomem has no special significance on x86. Use the standard mem*
functions instead of trying to call other versions. Some fixups
are needed to match the function prototypes.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
LKML-Reference: <1265380629-3212-6-git-send-email-brgerst@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/io_32.h')
-rw-r--r-- | arch/x86/include/asm/io_32.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/io_32.h b/arch/x86/include/asm/io_32.h index 72a6a4a..685e332 100644 --- a/arch/x86/include/asm/io_32.h +++ b/arch/x86/include/asm/io_32.h @@ -49,21 +49,21 @@ #define xlate_dev_kmem_ptr(p) p static inline void -memset_io(volatile void __iomem *addr, unsigned char val, int count) +memset_io(volatile void __iomem *addr, unsigned char val, size_t count) { memset((void __force *)addr, val, count); } static inline void -memcpy_fromio(void *dst, const volatile void __iomem *src, int count) +memcpy_fromio(void *dst, const volatile void __iomem *src, size_t count) { - __memcpy(dst, (const void __force *)src, count); + memcpy(dst, (const void __force *)src, count); } static inline void -memcpy_toio(volatile void __iomem *dst, const void *src, int count) +memcpy_toio(volatile void __iomem *dst, const void *src, size_t count) { - __memcpy((void __force *)dst, src, count); + memcpy((void __force *)dst, src, count); } /* |