From: Alan Ott Date: Tue, 18 Jan 2011 08:04:37 +0000 (-0500) Subject: HID: bt: Move hid_add_device() call to after hidp_session() has started. X-Git-Tag: v2.6.39-rc1~429^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f69dca20f77dc374b67e17e10b30cec37e778c4;p=pandora-kernel.git HID: bt: Move hid_add_device() call to after hidp_session() has started. Move the call to hid_add_device() (which calls a device's probe() function) to after the kernel_thread() call which starts the hidp_session() thread. This ensures the Bluetooth receive socket is fully running by the time a device's probe() function is called. This way, a device can communicate (send and receive) with the Bluetooth device from its probe() function. Signed-off-by: Alan Ott Acked-by: Gustavo F. Padovan Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed