Commit a061770e authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

liblcd/dma: Fix retrieval of physical address

Replace native api with LCD variant

Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <>
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)
dma_addr_t bus = page_to_phys(page) + offset;
dma_addr_t bus = __pa(lcd_page_address(page)) + offset;
WARN_ON(size == 0);
if (!check_addr("map_single", dev, bus, size))
Supports Markdown
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