aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-26 08:18:19 +0000
committerMarcel Holtmann <marcel@holtmann.org>2009-08-22 14:35:02 -0700
commita6a67efd7088702fdbbb780c5a3f8e1a74e77b63 (patch)
treefe35247ef5806ed690df3581de877fb84faad42b /net/bluetooth
parentBluetooth: Add missing kmalloc NULL tests to Marvell driver (diff)
downloadlinux-dev-a6a67efd7088702fdbbb780c5a3f8e1a74e77b63.tar.xz
linux-dev-a6a67efd7088702fdbbb780c5a3f8e1a74e77b63.zip
Bluetooth: Convert hdev->req_lock to a mutex
hdev->req_lock is used as mutex so make it a mutex. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 406ad07cdea1..e1da8f68759c 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -911,7 +911,7 @@ int hci_register_dev(struct hci_dev *hdev)
hdev->reassembly[i] = NULL;
init_waitqueue_head(&hdev->req_wait_q);
- init_MUTEX(&hdev->req_lock);
+ mutex_init(&hdev->req_lock);
inquiry_cache_init(hdev);