Staging: TIDSPBRIDGE: Fix mmap to map the correct region of physical memory
authorSteven Luo <steven@steven676.net>
Wed, 11 Dec 2013 20:51:56 +0000 (22:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 18:07:39 +0000 (10:07 -0800)
commited75098fd17b663f76dd7b4960c3da08fb250032
tree797bfb89b4486ecc2768be6b58c2d14ef701ebcc
parent76981cf1a18ba4c71be80a1f2a53ad43b918e804
Staging: TIDSPBRIDGE: Fix mmap to map the correct region of physical memory

Commit 559c71fe5dc3 ("Staging: TIDSPBRIDGE: Use vm_iomap_memory for
mmap-ing instead of remap_pfn_range") had the effect of inadvertently
shifting the start of the physical memory area mapped by
pdata->phys_mempool_base.  Correct this by subtracting that shift before
calling vm_iomap_memory() and adding it back afterwards.

Reported-by: Dheeraj CVR <cvr.dheeraj@gmail.com>
Signed-off-by: Ivaylo Dimitrov <freemangordon@abv.bg>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/rmgr/drv_interface.c