Skip to content

Commit

Permalink
NFC: Call the DEP link down ops even when in target mode
Browse files Browse the repository at this point in the history
Even in target mode we need to let the driver know that we want to
bring the DEP link down.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed Jun 4, 2012
1 parent 5a0f6f3 commit cb3a450
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/nfc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,6 @@ int nfc_dep_link_down(struct nfc_dev *dev)
goto error;
}

if (dev->rf_mode == NFC_RF_TARGET) {
rc = -EOPNOTSUPP;
goto error;
}

rc = dev->ops->dep_link_down(dev);
if (!rc) {
dev->dep_link_up = false;
Expand Down

0 comments on commit cb3a450

Please sign in to comment.