All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Kacur <jkacur@redhat.com>
To: lkml <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>,
	Greg Kroah-Hartman <gregkh@suse.de>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	John Kacur <jkacur@redhat.com>
Subject: [PATCH 01/15] dt9812: Convert the semaphore mess
Date: Mon, 11 Jan 2010 21:51:40 +0100	[thread overview]
Message-ID: <1263243114-3942-2-git-send-email-jkacur@redhat.com> (raw)
In-Reply-To: <1263243114-3942-1-git-send-email-jkacur@redhat.com>

From: Thomas Gleixner <tglx@linutronix.de>

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 have broken 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/comedi/drivers/dt9812.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c
index 312f4f2..91a0c5d 100644
--- a/drivers/staging/comedi/drivers/dt9812.c
+++ b/drivers/staging/comedi/drivers/dt9812.c
@@ -262,7 +262,7 @@ struct dt9812_usb_cmd {
 
 #define DT9812_NUM_SLOTS	16
 
-static DECLARE_MUTEX(dt9812_mutex);
+static DEFINE_SEMAPHORE(dt9812_mutex);
 
 static struct usb_device_id dt9812_table[] = {
 	{USB_DEVICE(0x0867, 0x9812)},
@@ -1124,7 +1124,7 @@ static int __init usb_dt9812_init(void)
 
 	/* Initialize all driver slots */
 	for (i = 0; i < DT9812_NUM_SLOTS; i++) {
-		init_MUTEX(&dt9812[i].mutex);
+		semaphore_init(&dt9812[i].mutex);
 		dt9812[i].serial = 0;
 		dt9812[i].usb = NULL;
 		dt9812[i].comedi = NULL;
-- 
1.6.5.2


  reply	other threads:[~2010-01-11 20:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-11 20:51 [PATCH 00/15] Staging: Convert the semaphore mess John Kacur
2010-01-11 20:51 ` John Kacur [this message]
2010-01-11 20:51   ` [PATCH 02/15] usbdux.c: " John Kacur
2010-01-11 20:51     ` [PATCH 03/15] usbduxfast: " John Kacur
2010-01-11 20:51       ` [PATCH 04/15] alphatrack: " John Kacur
2010-01-11 20:51         ` [PATCH 05/15] tranzport: Convert he " John Kacur
2010-01-11 20:51           ` [PATCH 06/15] mimio: Convert " John Kacur
2010-01-11 20:51             ` [PATCH 07/15] wwrap: Convert the " John Kacur
2010-01-11 20:51               ` [PATCH 08/15] p9auth: " John Kacur
2010-01-11 20:51                 ` [PATCH 09/15] mt9d112: " John Kacur
2010-01-11 20:51                   ` [PATCH 10/15] mt9p012_fox: " John Kacur
2010-01-11 20:51                     ` [PATCH 11/15] mt9t013: " John Kacur
2010-01-11 20:51                       ` [PATCH 12/15] s5k3e2fx: " John Kacur
2010-01-11 20:51                         ` [PATCH 13/15] pmem: " John Kacur
2010-01-11 20:51                           ` [PATCH 14/15] rtmp_init: " John Kacur
2010-01-11 20:51                             ` [PATCH 15/15] vme_user: " John Kacur
2010-01-11 20:56 ` [PATCH 00/15] Staging: " John Kacur
2010-01-15  1:29 ` Greg KH
2010-01-15 15:11   ` John Kacur
2010-01-15 15:19     ` Greg KH
2010-01-15 15:41       ` John Kacur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1263243114-3942-2-git-send-email-jkacur@redhat.com \
    --to=jkacur@redhat.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.