Selaa lähdekoodia

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>
Samuel Ortiz 13 vuotta sitten
vanhempi
commit
cb3a4503f4
1 muutettua tiedostoa jossa 0 lisäystä ja 5 poistoa
  1. 0 5
      net/nfc/core.c

+ 0 - 5
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;