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

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

    diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c
    index e228942..7cc609c 100644
    --- a/drivers/staging/vme/devices/vme_user.c
    +++ b/drivers/staging/vme/devices/vme_user.c
    @@ -639,7 +639,7 @@ static int __init vme_user_probe(struct device *dev, int cur_bus, int cur_slot)
    for (i = 0; i < VME_DEVS; i++) {
    image[i].kern_buf = NULL;
    image[i].pci_buf = 0;
    - init_MUTEX(&(image[i].sem));
    + semaphore_init(&(image[i].sem));
    image[i].device = NULL;
    image[i].resource = NULL;
    image[i].users = 0;
    --
    1.6.5.2


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