lkml.org 
[lkml]   [2010]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/15] rtmp_init: Convert the semaphore mess.
    Date
    From: Thomas Gleixner <tglx@linutronix.de>

    init_MUTEX(_LOCKED) and DECLARE_MUTEX are going away.

    Signed-off-by: John Kacur <jkacur@redhat.com>
    ---
    drivers/staging/rt2860/common/rtmp_init.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/staging/rt2860/common/rtmp_init.c b/drivers/staging/rt2860/common/rtmp_init.c
    index 21a95ff..9365618 100644
    --- a/drivers/staging/rt2860/common/rtmp_init.c
    +++ b/drivers/staging/rt2860/common/rtmp_init.c
    @@ -3520,7 +3520,7 @@ int RtmpRaDevCtrlInit(struct rt_rtmp_adapter *pAd, IN RTMP_INF_TYPE infType)
    ("STA Driver version-%s\n", STA_DRIVER_VERSION));

    #ifdef RTMP_MAC_USB
    - init_MUTEX(&(pAd->UsbVendorReq_semaphore));
    + semaphore_init(&(pAd->UsbVendorReq_semaphore));
    os_alloc_mem(pAd, (u8 **) & pAd->UsbVendorReqBuf,
    MAX_PARAM_BUFFER_SIZE - 1);
    if (pAd->UsbVendorReqBuf == NULL) {
    --
    1.6.5.2


    \
     
     \ /
      Last update: 2010-01-11 21:55    [W:0.018 / U:2.500 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site