blob: 4a6aba5d2ae3e6df7138bb62eda6f366f3d04e5e [file] [log] [blame]
From 9b499baa6a91c12360b69b0402171d760c2b6eb5 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..4d9b203 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