File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1721,14 +1721,6 @@ int hci_dev_do_close(struct hci_dev *hdev)
1721
1721
1722
1722
BT_DBG ("%s %p" , hdev -> name , hdev );
1723
1723
1724
- if (!hci_dev_test_flag (hdev , HCI_UNREGISTER ) &&
1725
- !hci_dev_test_flag (hdev , HCI_USER_CHANNEL ) &&
1726
- test_bit (HCI_UP , & hdev -> flags )) {
1727
- /* Execute vendor specific shutdown routine */
1728
- if (hdev -> shutdown )
1729
- hdev -> shutdown (hdev );
1730
- }
1731
-
1732
1724
cancel_delayed_work (& hdev -> power_off );
1733
1725
cancel_delayed_work (& hdev -> ncmd_timer );
1734
1726
@@ -1806,6 +1798,14 @@ int hci_dev_do_close(struct hci_dev *hdev)
1806
1798
clear_bit (HCI_INIT , & hdev -> flags );
1807
1799
}
1808
1800
1801
+ if (!hci_dev_test_flag (hdev , HCI_UNREGISTER ) &&
1802
+ !hci_dev_test_flag (hdev , HCI_USER_CHANNEL ) &&
1803
+ test_bit (HCI_UP , & hdev -> flags )) {
1804
+ /* Execute vendor specific shutdown routine */
1805
+ if (hdev -> shutdown )
1806
+ hdev -> shutdown (hdev );
1807
+ }
1808
+
1809
1809
/* flush cmd work */
1810
1810
flush_work (& hdev -> cmd_work );
1811
1811
You can’t perform that action at this time.
0 commit comments