[patch 28/30] arm: bcmring: semaphore cleanup

From: Thomas Gleixner
Date: Tue Sep 07 2010 - 10:35:53 EST


Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Leo Chen <leochen@xxxxxxxxxxxx>
Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx

---
arch/arm/mach-bcmring/dma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6/arch/arm/mach-bcmring/dma.c
===================================================================
--- linux-2.6.orig/arch/arm/mach-bcmring/dma.c
+++ linux-2.6/arch/arm/mach-bcmring/dma.c
@@ -691,7 +691,7 @@ int dma_init(void)

memset(&gDMA, 0, sizeof(gDMA));

- init_MUTEX_LOCKED(&gDMA.lock);
+ sema_init(&gDMA.lock, 0);
init_waitqueue_head(&gDMA.freeChannelQ);

/* Initialize the Hardware */
@@ -1574,7 +1574,7 @@ int dma_init_mem_map(DMA_MemMap_t *memMa
{
memset(memMap, 0, sizeof(*memMap));

- init_MUTEX(&memMap->lock);
+ sema_init(&memMap->lock, 1);

return 0;
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/