From 44e3e173c354122e79ef8b707ae6caa179bb1da4 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner 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 Cc: Benjamin Herrenschmidt Signed-off-by: Paul Gortmaker --- drivers/macintosh/adb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 1c4ee6e..0ff83ec 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.0.4