Skip to content

Commit

Permalink
arm: Bcmring: semaphore cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas 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>
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent 5b8c4f2 commit 5356d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-bcmring/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -1574,7 +1574,7 @@ int dma_init_mem_map(DMA_MemMap_t *memMap)
{
memset(memMap, 0, sizeof(*memMap));

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

return 0;
}
Expand Down

0 comments on commit 5356d94

Please sign in to comment.