aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/core.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-05-21 09:59:52 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-06-04 15:34:31 -0400
commitcb3a4503f41f7f60bbc74a937bc30a0e143fc53c (patch)
tree3a62ad90af7694f22afeb8e7e2a3e284b7e8398f /net/nfc/core.c
parent5a0f6f3b46b28310262ad9585b80062ef56c5362 (diff)
NFC: Call the DEP link down ops even when in target mode
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>
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r--net/nfc/core.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c
index 6a3799eebc30..4177bb5104b9 100644
--- a/net/nfc/core.c
+++ b/net/nfc/core.c
@@ -268,11 +268,6 @@ int nfc_dep_link_down(struct nfc_dev *dev)
268 goto error; 268 goto error;
269 } 269 }
270 270
271 if (dev->rf_mode == NFC_RF_TARGET) {
272 rc = -EOPNOTSUPP;
273 goto error;
274 }
275
276 rc = dev->ops->dep_link_down(dev); 271 rc = dev->ops->dep_link_down(dev);
277 if (!rc) { 272 if (!rc) {
278 dev->dep_link_up = false; 273 dev->dep_link_up = false;