Bluetooth: Let HIDP grab the device reference for connections
commit6dabadea778406c0c6701ba5aa37e669a524dbd8
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 22 Aug 2009 21:22:15 +0000 (22 14:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Oct 2009 22:11:54 +0000 (22 15:11 -0700)
treebff04f34bff8febd64cd4cc9183c04d7dd18267b
parent34976a3ca81f3f5a250ba6074bda0848e97cf2e9
Bluetooth: Let HIDP grab the device reference for connections

commit edad63886993d18ab800c49f6587a93432ef8b35 upstream.

The core exports the hci_conn_hold_device() and hci_conn_put_device()
functions for device reference of connections. Use this to ensure that
the uevents from the parent are send after the child ones.

Based on a report by Brian Rogers <brian@xyzw.org>

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bluetooth/hidp/core.c
net/bluetooth/hidp/hidp.h