summaryrefslogtreecommitdiff
path: root/drivers/nfc
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-20 14:30:40 +0530
committerSamuel Ortiz <sameo@linux.intel.com>2013-09-25 02:02:37 +0200
commit4b7449cdf4280298d65afd4921b5030fc93a19a1 (patch)
treea3ec23213aa539393d3c723db6630f3795e9fc97 /drivers/nfc
parent180106bd074aad4b00a0dc6a6fc414c386a27195 (diff)
downloadlwn-4b7449cdf4280298d65afd4921b5030fc93a19a1.tar.gz
lwn-4b7449cdf4280298d65afd4921b5030fc93a19a1.zip
NFC: nfcwilink: Remove redundant dev_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Cc: Ilan Elias <ilane@ti.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/nfcwilink.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/nfc/nfcwilink.c b/drivers/nfc/nfcwilink.c
index 0c79921b3870..71308645593f 100644
--- a/drivers/nfc/nfcwilink.c
+++ b/drivers/nfc/nfcwilink.c
@@ -559,8 +559,6 @@ static int nfcwilink_remove(struct platform_device *pdev)
nci_unregister_device(ndev);
nci_free_device(ndev);
- dev_set_drvdata(&pdev->dev, NULL);
-
return 0;
}