Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77989ee8 authored by Qiang Chen's avatar Qiang Chen Committed by Tomi Valkeinen
Browse files

video: ocfb: Fix data type warning



When allocate framebuffer memory using dma_alloc_coherent(),
we'd better use dma_addr_t instead of phys_addr_t. Because the
address we got in fact is DMA or bus address for the platform.

This patch also fixes below build warning:
drivers/video/fbdev/ocfb.c:335:2:
	warning: passing argument 3 of ‘dma_alloc_attrs’
	from incompatible pointer type [enabled by default]

Signed-off-by: default avatarQiang Chen <qiang2.chen@sonymobile.com>
Acked-by: default avatarStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 77a7f183
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment