summaryrefslogtreecommitdiffstats
path: root/net/nfc
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 /net/nfc
parent06c660340f1e142b607541ece3520fff3f5d2c39 (diff)
downloadop-kernel-dev-4eba11e82a0365117be92453c5c91a263500fd1a.zip
op-kernel-dev-4eba11e82a0365117be92453c5c91a263500fd1a.tar.gz
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>
Diffstat (limited to 'net/nfc')
-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 fe66908..d07ca4c 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;
}
OpenPOWER on IntegriCloud