25 lines
801 B
Diff
25 lines
801 B
Diff
From 8e3da546a76245e9f45323cc2725cf24637bc571 Mon Sep 17 00:00:00 2001
|
|
From: Tobias Schramm <t.schramm@manjaro.org>
|
|
Date: Thu, 28 May 2020 14:14:06 +0200
|
|
Subject: [PATCH 2/8] bluetooth: hci_serdev: Clear registered bit on unregister
|
|
|
|
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
|
|
---
|
|
drivers/bluetooth/hci_serdev.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c
|
|
index 7b233312e723..f2fcefeb99e0 100644
|
|
--- a/drivers/bluetooth/hci_serdev.c
|
|
+++ b/drivers/bluetooth/hci_serdev.c
|
|
@@ -363,5 +363,7 @@ void hci_uart_unregister_device(struct hci_uart *hu)
|
|
|
|
hu->proto->close(hu);
|
|
serdev_device_close(hu->serdev);
|
|
+
|
|
+ clear_bit(HCI_UART_REGISTERED, &hu->flags);
|
|
}
|
|
EXPORT_SYMBOL_GPL(hci_uart_unregister_device);
|
|
--
|
|
2.28.0
|
|
|