summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-06-18 01:48:26 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2013-08-14 01:13:36 +0200
commit4eba11e82a0365117be92453c5c91a263500fd1a (patch)
tree91b99b62225b7de4e3b005a1b8e90d4f8e59cab6
parent06c660340f1e142b607541ece3520fff3f5d2c39 (diff)
downloadlinux-4eba11e82a0365117be92453c5c91a263500fd1a.tar.bz2
NFC: hci: Fix enable/disable confusion
There is a cut and paste bug so we enable a second time instead of disabling. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--net/nfc/hci/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index fe66908401f5..d07ca4c5cf8c 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -717,7 +717,7 @@ static int hci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx)
struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev);
if (hdev->ops->disable_se)
- return hdev->ops->enable_se(hdev, se_idx);
+ return hdev->ops->disable_se(hdev, se_idx);
return 0;
}