From 0fb6754f996b5022e1d856fda3d3258382383596 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 6 May 2009 09:03:43 +0300 Subject: [PATCH 62/69] DSS2: VRAM: Fix indentation --- arch/arm/plat-omap/vram.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/arm/plat-omap/vram.c b/arch/arm/plat-omap/vram.c index b126a64..f3ce849 100644 --- a/arch/arm/plat-omap/vram.c +++ b/arch/arm/plat-omap/vram.c @@ -287,35 +287,35 @@ static void _omap_vram_dma_cb(int lch, u16 ch_status, void *data) static int _omap_vram_clear(u32 paddr, unsigned pages) { struct completion compl; - unsigned elem_count; - unsigned frame_count; + unsigned elem_count; + unsigned frame_count; int r; int lch; init_completion(&compl); - r = omap_request_dma(OMAP_DMA_NO_DEVICE, "VRAM DMA", + r = omap_request_dma(OMAP_DMA_NO_DEVICE, "VRAM DMA", _omap_vram_dma_cb, - &compl, &lch); - if (r) { + &compl, &lch); + if (r) { pr_err("VRAM: request_dma failed for memory clear\n"); return -EBUSY; } - elem_count = pages * PAGE_SIZE / 4; - frame_count = 1; + elem_count = pages * PAGE_SIZE / 4; + frame_count = 1; - omap_set_dma_transfer_params(lch, OMAP_DMA_DATA_TYPE_S32, - elem_count, frame_count, - OMAP_DMA_SYNC_ELEMENT, - 0, 0); + omap_set_dma_transfer_params(lch, OMAP_DMA_DATA_TYPE_S32, + elem_count, frame_count, + OMAP_DMA_SYNC_ELEMENT, + 0, 0); - omap_set_dma_dest_params(lch, 0, OMAP_DMA_AMODE_POST_INC, + omap_set_dma_dest_params(lch, 0, OMAP_DMA_AMODE_POST_INC, paddr, 0, 0); omap_set_dma_color_mode(lch, OMAP_DMA_CONSTANT_FILL, 0x000000); - omap_start_dma(lch); + omap_start_dma(lch); if (wait_for_completion_timeout(&compl, msecs_to_jiffies(1000)) == 0) { omap_stop_dma(lch); -- 1.6.2.4