diff options
Diffstat (limited to 'arch/x86/include/asm/io.h')
-rw-r--r-- | arch/x86/include/asm/io.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 0971727bc6..d4b5c26919 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + /* * Mostly stolen from the linux kernel */ @@ -63,13 +65,13 @@ BUILDIO(l, , int) #define outb outb #define outw outw -#define outl outb +#define outl outl #define inb inb #define inw inw #define inl inl #define outsb outsb #define outsw outsw -#define outsl outsb +#define outsl outsl #define insb insb #define insw insw #define insl insl @@ -82,16 +84,6 @@ static inline void io_delay(void) inb(0x80); } -static inline void *phys_to_virt(unsigned long phys) -{ - return (void *)phys; -} - -static inline unsigned long virt_to_phys(volatile void *mem) -{ - return (unsigned long)mem; -} - #include <asm-generic/io.h> #endif /* __ASM_X86_IO_H */ |