blob: 1240eb28d8358e97c3f90accf62704c8856d0828 [file] [log] [blame]
From 17f5c647718e8383e459c6a86a9e82cb64ace93e Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sun, 26 Jul 2009 00:25:18 +0200
Subject: [PATCH] drivers/macintosh/adb: Do not claim that the semaphore is a mutex
commit 9b499baa6a91c12360b69b0402171d760c2b6eb5 in tip.
The usage of this "mutex" is non obvious and used as completion in
some places. Make it a semaphore.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c
index 23741ce..14910a0 100644
--- a/drivers/macintosh/adb.c
+++ b/drivers/macintosh/adb.c
@@ -83,7 +83,7 @@ static struct adb_driver *adb_controller;
BLOCKING_NOTIFIER_HEAD(adb_client_list);
static int adb_got_sleep;
static int adb_inited;
-static DECLARE_MUTEX(adb_probe_mutex);
+static DEFINE_SEMAPHORE(adb_probe_mutex, 1);
static int sleepy_trackpad;
static int autopoll_devs;
int __adb_probe_sync;
--
1.7.1.1