summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMarcel Holtmann2015-03-13 17:04:17 +0100
committerJohan Hedberg2015-03-13 17:35:45 +0100
commiteacb44dff98559d4682072c0061e1ecb63687e9c (patch)
tree5634cae7658ca3029b8d56426086d5fa6f7e7299 /net/bluetooth/hci_core.c
parentBluetooth: btusb: Add helper for READ_LOCAL_VERSION command (diff)
downloadkernel-qcow2-linux-eacb44dff98559d4682072c0061e1ecb63687e9c.tar.gz
kernel-qcow2-linux-eacb44dff98559d4682072c0061e1ecb63687e9c.tar.xz
kernel-qcow2-linux-eacb44dff98559d4682072c0061e1ecb63687e9c.zip
Bluetooth: Use DECLARE_BITMAP for hdev->dev_flags field
The hdev->dev_flags field has outgrown itself on 32-bit systems. So instead of hacking around it, switch to using DECLARE_BITMAP. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
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 c6ed46c4f45a..23a43ca98785 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1699,7 +1699,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
/* Clear flags */
hdev->flags &= BIT(HCI_RAW);
- hdev->dev_flags &= ~HCI_PERSISTENT_MASK;
+ hci_dev_clear_volatile_flags(hdev);
/* Controller radio is available but is currently powered down */
hdev->amp_status = AMP_STATUS_POWERED_DOWN;