diff options
Diffstat (limited to 'include/linux/io-mapping.h')
-rw-r--r-- | include/linux/io-mapping.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/io-mapping.h b/include/linux/io-mapping.h index f1ed66c43787..c1b48301dc7d 100644 --- a/include/linux/io-mapping.h +++ b/include/linux/io-mapping.h | |||
@@ -93,8 +93,11 @@ io_mapping_unmap_atomic(void *vaddr) | |||
93 | static inline void * | 93 | static inline void * |
94 | io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset) | 94 | io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset) |
95 | { | 95 | { |
96 | resource_size_t phys_addr; | ||
97 | |||
96 | BUG_ON(offset >= mapping->size); | 98 | BUG_ON(offset >= mapping->size); |
97 | resource_size_t phys_addr = mapping->base + offset; | 99 | phys_addr = mapping->base + offset; |
100 | |||
98 | return ioremap_wc(phys_addr, PAGE_SIZE); | 101 | return ioremap_wc(phys_addr, PAGE_SIZE); |
99 | } | 102 | } |
100 | 103 | ||