Commit 5356d948 authored by Thomas Gleixner's avatar Thomas Gleixner

arm: Bcmring: semaphore cleanup

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Leo Chen <leochen@broadcom.com>
LKML-Reference: <20100907125057.371771121@linutronix.de>
parent 5b8c4f23
...@@ -691,7 +691,7 @@ int dma_init(void) ...@@ -691,7 +691,7 @@ int dma_init(void)
memset(&gDMA, 0, sizeof(gDMA)); memset(&gDMA, 0, sizeof(gDMA));
init_MUTEX_LOCKED(&gDMA.lock); sema_init(&gDMA.lock, 0);
init_waitqueue_head(&gDMA.freeChannelQ); init_waitqueue_head(&gDMA.freeChannelQ);
/* Initialize the Hardware */ /* Initialize the Hardware */
...@@ -1574,7 +1574,7 @@ int dma_init_mem_map(DMA_MemMap_t *memMap) ...@@ -1574,7 +1574,7 @@ int dma_init_mem_map(DMA_MemMap_t *memMap)
{ {
memset(memMap, 0, sizeof(*memMap)); memset(memMap, 0, sizeof(*memMap));
init_MUTEX(&memMap->lock); sema_init(&memMap->lock, 1);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment