From: Dan Carpenter Date: Mon, 17 Jun 2013 22:48:26 +0000 (+0300) Subject: NFC: hci: Fix enable/disable confusion X-Git-Tag: v3.12-rc1~132^2~84^2^2~108^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4eba11e82a0365117be92453c5c91a263500fd1a;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Samuel Ortiz --- 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; }