Messages in this thread Patch in this message | | | Date | Tue, 07 Sep 2010 14:33:52 -0000 | From | Thomas Gleixner <> | Subject | [patch 28/30] arm: bcmring: semaphore cleanup |
| |
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Leo Chen <leochen@broadcom.com> Cc: linux-arm-kernel@lists.infradead.org
--- 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; }
| |