Messages in this thread Patch in this message | | | From | John Kacur <> | Subject | [PATCH 08/15] p9auth: Convert the semaphore mess | Date | Mon, 11 Jan 2010 21:51:47 +0100 |
| |
From: Thomas Gleixner <tglx@linutronix.de>
From 041e3130496f31d0cb4887fc6183117e662f5141 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner <tglx@linutronix.de> Date: Sun, 26 Jul 2009 00:59:33 +0200 Subject: [PATCH 124/570] staging: Bulk convert the semaphore mess
init_MUTEX(_LOCKED) and DECLARE_MUTEX are going away. Bulk convert staging users.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de>
I broke the original patch down into separate patches per file because the original patch no longer applies.
Signed-off-by: John Kacur <jkacur@redhat.com> --- drivers/staging/p9auth/p9auth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/p9auth/p9auth.c b/drivers/staging/p9auth/p9auth.c index db79626..2946651 100644 --- a/drivers/staging/p9auth/p9auth.c +++ b/drivers/staging/p9auth/p9auth.c @@ -391,7 +391,7 @@ static int __init cap_init_module(void) /* Initialize each device. */ for (i = 0; i < cap_nr_devs; i++) { cap_devices[i].node_size = cap_node_size; - init_MUTEX(&cap_devices[i].sem); + semaphore_init(&cap_devices[i].sem); cap_setup_cdev(&cap_devices[i], i); } -- 1.6.5.2
| |