diff options
Diffstat (limited to 'include/asm-generic/io.h')
-rw-r--r-- | include/asm-generic/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index aba53083297d..ac9da00e9f2c 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h | |||
@@ -346,6 +346,7 @@ extern void ioport_unmap(void __iomem *p); | |||
346 | #define xlate_dev_kmem_ptr(p) p | 346 | #define xlate_dev_kmem_ptr(p) p |
347 | #define xlate_dev_mem_ptr(p) __va(p) | 347 | #define xlate_dev_mem_ptr(p) __va(p) |
348 | 348 | ||
349 | #ifdef CONFIG_VIRT_TO_BUS | ||
349 | #ifndef virt_to_bus | 350 | #ifndef virt_to_bus |
350 | static inline unsigned long virt_to_bus(volatile void *address) | 351 | static inline unsigned long virt_to_bus(volatile void *address) |
351 | { | 352 | { |
@@ -357,6 +358,7 @@ static inline void *bus_to_virt(unsigned long address) | |||
357 | return (void *) address; | 358 | return (void *) address; |
358 | } | 359 | } |
359 | #endif | 360 | #endif |
361 | #endif | ||
360 | 362 | ||
361 | #ifndef memset_io | 363 | #ifndef memset_io |
362 | #define memset_io(a, b, c) memset(__io_virt(a), (b), (c)) | 364 | #define memset_io(a, b, c) memset(__io_virt(a), (b), (c)) |