OMAP: FB: use DMA_BIT_MASK() for fb's coherent_dma_mask
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 Nov 2012 13:41:21 +0000 (15:41 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 13 Nov 2012 07:51:42 +0000 (09:51 +0200)
Use DMA_BIT_MASK() for fb's coherent_dma_mask for clarity.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/fb.c

index bcbb9d5dc293e4066264dc6aba714af8aa6594f4..218963bd4bb301a4fb9ef74d8ed0f981f2e030b0 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/memblock.h>
 #include <linux/io.h>
 #include <linux/omapfb.h>
+#include <linux/dma-mapping.h>
 
 #include <mach/hardware.h>
 #include <asm/mach/map.h>
@@ -45,7 +46,7 @@ static struct platform_device omap_fb_device = {
        .id             = -1,
        .dev = {
                .dma_mask               = &omap_fb_dma_mask,
-               .coherent_dma_mask      = ~(u32)0,
+               .coherent_dma_mask      = DMA_BIT_MASK(32),
                .platform_data          = &omapfb_config,
        },
        .num_resources = 0,
@@ -81,7 +82,7 @@ static struct platform_device omap_fb_device = {
        .id             = -1,
        .dev = {
                .dma_mask               = &omap_fb_dma_mask,
-               .coherent_dma_mask      = ~(u32)0,
+               .coherent_dma_mask      = DMA_BIT_MASK(32),
                .platform_data          = &omapfb_config,
        },
        .num_resources = 0,