call idle() from driver-dependent close() rather than from nfc_close() as some driver still need to do an ack() before

This commit is contained in:
Philippe Teuwen
2013-01-31 01:18:23 +01:00
parent 683505f39b
commit 8bc7a1c291
8 changed files with 12 additions and 5 deletions

View File

@@ -209,11 +209,8 @@ void
nfc_close(nfc_device *pnd)
{
if (pnd) {
// Go in idle mode
nfc_idle(pnd);
// Close, clean up and release the device
pnd->driver->close(pnd);
}
}