summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorGustavo F. Padovan2011-12-18 15:40:32 +0100
committerGustavo F. Padovan2011-12-18 20:07:58 +0100
commit7f971041cf591d8cf3b289c9d78739638ca7e629 (patch)
tree8b452bc05bb9cedccee77722bc9f7e82df62ba0e /net/bluetooth/hci_core.c
parentBluetooth: Remove work_add and work_del from hci_sysfs (diff)
downloadkernel-qcow2-linux-7f971041cf591d8cf3b289c9d78739638ca7e629.tar.gz
kernel-qcow2-linux-7f971041cf591d8cf3b289c9d78739638ca7e629.tar.xz
kernel-qcow2-linux-7f971041cf591d8cf3b289c9d78739638ca7e629.zip
Bluetooth: Use system workqueue to schedule power_on
hdev->workqueue should be only for rx/tx, so move this one out. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-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 dcbb7655d772..b250685d59a5 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1522,7 +1522,7 @@ int hci_register_dev(struct hci_dev *hdev)
set_bit(HCI_AUTO_OFF, &hdev->flags);
set_bit(HCI_SETUP, &hdev->flags);
- queue_work(hdev->workqueue, &hdev->power_on);
+ schedule_work(&hdev->power_on);
hci_notify(hdev, HCI_DEV_REG);