From: Johan Hedberg Date: Tue, 1 Oct 2013 19:44:49 +0000 (+0300) Subject: Bluetooth: Refactor hci_dev_open to a separate hci_dev_do_open function X-Git-Tag: v3.13-rc1~105^2~225^2~24^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbed0ca137ef442c545602a09030bbb35d8db013;p=pandora-kernel.git Bluetooth: Refactor hci_dev_open to a separate hci_dev_do_open function The requirements of an external call to hci_dev_open from hci_sock.c are different to that from within hci_core.c. In the former case we want to flush any pending work in hdev->req_workqueue whereas in the latter we don't (since there we are already calling from within the workqueue itself). This patch does the necessary refactoring to a separate hci_dev_do_open function (analogous to hci_dev_do_close) but does not yet introduce the synchronizations relating to the workqueue usage. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed