fix warning in io_mapping_map_wc()

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Pallipadi, Venkatesh 2009-03-01 08:53:27 -08:00 committed by Ingo Molnar
parent 92b9af9e4f
commit 5ce04e3de8

View file

@ -91,8 +91,11 @@ io_mapping_unmap_atomic(void *vaddr)
static inline void *
io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset)
{
resource_size_t phys_addr;
BUG_ON(offset >= mapping->size);
resource_size_t phys_addr = mapping->base + offset;
phys_addr = mapping->base + offset;
return ioremap_wc(phys_addr, PAGE_SIZE);
}