lkml.org 
[lkml]   [2010]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    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;
    }



    \
     
     \ /
      Last update: 2010-09-07 16:41    [W:0.041 / U:101.656 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site