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 13/15] pmem: Convert the semaphore mess.
    Date
    init_MUTEX(_LOCKED) and DECLARE_MUTEX are going away.

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

    diff --git a/drivers/staging/dream/pmem.c b/drivers/staging/dream/pmem.c
    index def6468..0740dfb 100644
    --- a/drivers/staging/dream/pmem.c
    +++ b/drivers/staging/dream/pmem.c
    @@ -1232,7 +1232,7 @@ int pmem_setup(struct android_pmem_platform_data *pdata,
    pmem[id].ioctl = ioctl;
    pmem[id].release = release;
    init_rwsem(&pmem[id].bitmap_sem);
    - init_MUTEX(&pmem[id].data_list_sem);
    + semaphore_init(&pmem[id].data_list_sem);
    INIT_LIST_HEAD(&pmem[id].data_list);
    pmem[id].dev.name = pdata->name;
    pmem[id].dev.minor = id;
    --
    1.6.5.2


    \
     
     \ /
      Last update: 2010-01-11 21:57    [W:0.044 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site