From: Samuel Ortiz Date: Mon, 21 May 2012 13:59:52 +0000 (+0200) Subject: NFC: Call the DEP link down ops even when in target mode X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=cb3a4503f41f7f60bbc74a937bc30a0e143fc53c;p=deliverable%2Flinux.git 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 --- 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) 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;