Commit a061770e authored by Vikram Narayanan's avatar Vikram Narayanan

liblcd/dma: Fix retrieval of physical address

Replace native api with LCD variant
Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent 6e5fab79
......@@ -34,7 +34,11 @@ static dma_addr_t nommu_map_page(struct device *dev, struct page *page,
enum dma_data_direction dir,
unsigned long attrs)
{
#ifndef LCD_ISOLATE
dma_addr_t bus = page_to_phys(page) + offset;
#else
dma_addr_t bus = __pa(lcd_page_address(page)) + offset;
#endif
WARN_ON(size == 0);
if (!check_addr("map_single", dev, bus, size))
return DMA_ERROR_CODE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment