diff options
-rw-r--r-- | include/net/bluetooth/hci_core.h | 6 | ||||
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 25b8a0345a6a..7b640aeddb64 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -117,7 +117,7 @@ struct hci_dev { | |||
117 | struct sk_buff *sent_cmd; | 117 | struct sk_buff *sent_cmd; |
118 | struct sk_buff *reassembly[3]; | 118 | struct sk_buff *reassembly[3]; |
119 | 119 | ||
120 | struct semaphore req_lock; | 120 | struct mutex req_lock; |
121 | wait_queue_head_t req_wait_q; | 121 | wait_queue_head_t req_wait_q; |
122 | __u32 req_status; | 122 | __u32 req_status; |
123 | __u32 req_result; | 123 | __u32 req_result; |
@@ -704,8 +704,8 @@ struct hci_sec_filter { | |||
704 | #define HCI_REQ_PEND 1 | 704 | #define HCI_REQ_PEND 1 |
705 | #define HCI_REQ_CANCELED 2 | 705 | #define HCI_REQ_CANCELED 2 |
706 | 706 | ||
707 | #define hci_req_lock(d) down(&d->req_lock) | 707 | #define hci_req_lock(d) mutex_lock(&d->req_lock) |
708 | #define hci_req_unlock(d) up(&d->req_lock) | 708 | #define hci_req_unlock(d) mutex_unlock(&d->req_lock) |
709 | 709 | ||
710 | void hci_req_complete(struct hci_dev *hdev, int result); | 710 | void hci_req_complete(struct hci_dev *hdev, int result); |
711 | 711 | ||
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) | |||
911 | hdev->reassembly[i] = NULL; | 911 | hdev->reassembly[i] = NULL; |
912 | 912 | ||
913 | init_waitqueue_head(&hdev->req_wait_q); | 913 | init_waitqueue_head(&hdev->req_wait_q); |
914 | init_MUTEX(&hdev->req_lock); | 914 | mutex_init(&hdev->req_lock); |
915 | 915 | ||
916 | inquiry_cache_init(hdev); | 916 | inquiry_cache_init(hdev); |
917 | 917 | ||