summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/nfc/st21nfcb/st21nfcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/nfc/st21nfcb/st21nfcb.c')
-rw-r--r--kernel/drivers/nfc/st21nfcb/st21nfcb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/drivers/nfc/st21nfcb/st21nfcb.c b/kernel/drivers/nfc/st21nfcb/st21nfcb.c
index ca9871ab3..c7dc282d5 100644
--- a/kernel/drivers/nfc/st21nfcb/st21nfcb.c
+++ b/kernel/drivers/nfc/st21nfcb/st21nfcb.c
@@ -131,11 +131,8 @@ EXPORT_SYMBOL_GPL(st21nfcb_nci_probe);
void st21nfcb_nci_remove(struct nci_dev *ndev)
{
- struct st21nfcb_nci_info *info = nci_get_drvdata(ndev);
-
nci_unregister_device(ndev);
nci_free_device(ndev);
- kfree(info);
}
EXPORT_SYMBOL_GPL(st21nfcb_nci_remove);