fbdev: sh_mobile_lcdc: use dma_mmap_coherent
authorHideki EIRAKU <hdk@igel.co.jp>
Thu, 16 Aug 2012 10:13:20 +0000 (19:13 +0900)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 21 Nov 2012 14:31:45 +0000 (15:31 +0100)
commitbf10a53765b4435a5349a92a5a51753902ed86f1
treebbd727583e795cd0ad9394bab9af9ce0e69903c6
parentf4a75d2eb7b1e2206094b901be09adb31ba63681
fbdev: sh_mobile_lcdc: use dma_mmap_coherent

fb_mmap() implemented in fbmem.c uses smem_start as the physical
address of the frame buffer.  In the sh_mobile_lcdc driver, the
smem_start is a dma_addr_t that is not a physical address when IOMMU is
enabled.  dma_mmap_coherent() maps the address correctly.

Signed-off-by: Hideki EIRAKU <hdk@igel.co.jp>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/sh_mobile_lcdcfb.c