NFC: Fixed nfc core and hci unregistration and cleanup
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Mon, 26 Nov 2012 17:06:27 +0000 (18:06 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 9 Jan 2013 23:51:48 +0000 (00:51 +0100)
commitf0c9103813b3045bd5b43220b6a78c9908a45d24
tree78422096c0728f84a43c057bcf6ffa185bd13190
parent5f4d6214ef5e9b1ff6a72ddfa387c1d72adfac98
NFC: Fixed nfc core and hci unregistration and cleanup

When an adapter is removed, it will unregister itself from hci and/or
nfc core. In order to do that safely, work tasks must first be canceled
and prevented to be scheduled again, before the hci or nfc device can be
destroyed.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/hci.h
include/net/nfc/nfc.h
net/nfc/core.c
net/nfc/hci/core.c
net/nfc/hci/hcp.c