diff options
author | Qiang Chen <qiang2.chen@sonymobile.com> | 2014-12-05 03:18:30 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-01-13 05:53:25 -0500 |
commit | 77989ee83c7c634a642383ec01f43dd471637558 (patch) | |
tree | 93a4d933b97dcaa1e286e593fa49d5b53f2f10d2 | |
parent | 77a7f1837a9c6f9cfb6ce0d5b166e1f1f7b117b3 (diff) |
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: Qiang Chen <qiang2.chen@sonymobile.com>
Acked-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/fbdev/ocfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/ocfb.c b/drivers/video/fbdev/ocfb.c index 7f9dc9bec309..de9819660ca0 100644 --- a/drivers/video/fbdev/ocfb.c +++ b/drivers/video/fbdev/ocfb.c | |||
@@ -61,7 +61,7 @@ struct ocfb_dev { | |||
61 | /* flag indicating whether the regs are little endian accessed */ | 61 | /* flag indicating whether the regs are little endian accessed */ |
62 | int little_endian; | 62 | int little_endian; |
63 | /* Physical and virtual addresses of framebuffer */ | 63 | /* Physical and virtual addresses of framebuffer */ |
64 | phys_addr_t fb_phys; | 64 | dma_addr_t fb_phys; |
65 | void __iomem *fb_virt; | 65 | void __iomem *fb_virt; |
66 | u32 pseudo_palette[PALETTE_SIZE]; | 66 | u32 pseudo_palette[PALETTE_SIZE]; |
67 | }; | 67 | }; |