summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/fdp
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-03-22 23:17:00 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2016-07-04 12:11:54 +0200
commitf36acc334fb86da3761583dce50faa17a4cbd4de (patch)
tree6ace6d0402202a8d5af981bca49c2bb1e6a6fc8b /drivers/nfc/fdp
parent8186f6e382d8719d0a4bc0ef218c4dd7cf55b496 (diff)
downloadlinux-f36acc334fb86da3761583dce50faa17a4cbd4de.tar.bz2
NFC: set info->ram_patch to NULL when it is released
When info->ram_patch is released info->otp_patch is being set to NULL rather than info->ram_patch. I believe this is a cut-n-paste bug from almost identical code proceeding it that uses the same idiom for info->otp_patch. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/fdp')
-rw-r--r--drivers/nfc/fdp/fdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c
index e44a7a2f4061..d93d3145365f 100644
--- a/drivers/nfc/fdp/fdp.c
+++ b/drivers/nfc/fdp/fdp.c
@@ -345,7 +345,7 @@ static void fdp_nci_release_firmware(struct nci_dev *ndev)
if (info->ram_patch) {
release_firmware(info->ram_patch);
- info->otp_patch = NULL;
+ info->ram_patch = NULL;
}
}