summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-10-25 21:13:36 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-31 17:51:57 -0200
commitb91a4e3e3a16085623d47f03b338d9b74954ac67 (patch)
treecc6f8ba9cdf9947f369ff8354685accab3785472 /drivers/bluetooth
parentfc501ad7a10a356819505b1e526079d47fdebc2c (diff)
downloadop-kernel-dev-b91a4e3e3a16085623d47f03b338d9b74954ac67.zip
op-kernel-dev-b91a4e3e3a16085623d47f03b338d9b74954ac67.tar.gz
Bluetooth: bcm203x: Use GFP_KERNEL in workqueue
A workqueue is allowed to sleep so we can safely use GFP_KERNEL instead of GFP_ATOMIC. This is still legacy code when the driver used timer BHs and not a worqueue. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/bcm203x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c
index ec743c2..54952ab 100644
--- a/drivers/bluetooth/bcm203x.c
+++ b/drivers/bluetooth/bcm203x.c
@@ -161,7 +161,7 @@ static void bcm203x_work(struct work_struct *work)
if (atomic_read(&data->shutdown))
return;
- if (usb_submit_urb(data->urb, GFP_ATOMIC) < 0)
+ if (usb_submit_urb(data->urb, GFP_KERNEL) < 0)
BT_ERR("Can't submit URB");
}
OpenPOWER on IntegriCloud