linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] NFC: Remove redundant dev_set_drvdata
@ 2013-09-20  9:00 Sachin Kamat
  2013-09-20  9:00 ` [PATCH 2/2] NFC: pn533: Staticize local symbols Sachin Kamat
  2013-09-20 15:30 ` [PATCH 1/2] NFC: Remove redundant dev_set_drvdata Samuel Ortiz
  0 siblings, 2 replies; 4+ messages in thread
From: Sachin Kamat @ 2013-09-20  9:00 UTC (permalink / raw)
  To: linux-nfc
  Cc: linux-wireless, sameo, lauro.venancio, aloisio.almeida,
	sachin.kamat, Ilan Elias

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Ilan Elias <ilane@ti.com>
---
Series compile tested.
---
 drivers/nfc/nfcwilink.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/nfc/nfcwilink.c b/drivers/nfc/nfcwilink.c
index 59f95d8..9b1d91ee 100644
--- a/drivers/nfc/nfcwilink.c
+++ b/drivers/nfc/nfcwilink.c
@@ -578,8 +578,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;
 }
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-20 15:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-20  9:00 [PATCH 1/2] NFC: Remove redundant dev_set_drvdata Sachin Kamat
2013-09-20  9:00 ` [PATCH 2/2] NFC: pn533: Staticize local symbols Sachin Kamat
2013-09-20 15:31   ` Samuel Ortiz
2013-09-20 15:30 ` [PATCH 1/2] NFC: Remove redundant dev_set_drvdata Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).