linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] Input: cobalt_btns - Remove redundant dev_set_drvdata
@ 2013-09-06 18:08 Sachin Kamat
  2013-09-06 18:08 ` [PATCH 2/4] Input: cyttsp4_core " Sachin Kamat
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-09-06 18:08 UTC (permalink / raw)
  To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Yoichi Yuasa

Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Yoichi Yuasa <yuasa@linux-mips.org>
---
 drivers/input/misc/cobalt_btns.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/input/misc/cobalt_btns.c b/drivers/input/misc/cobalt_btns.c
index 4f77f87..b5d71d2 100644
--- a/drivers/input/misc/cobalt_btns.c
+++ b/drivers/input/misc/cobalt_btns.c
@@ -131,7 +131,6 @@ static int cobalt_buttons_probe(struct platform_device *pdev)
  err_free_mem:
 	input_free_polled_device(poll_dev);
 	kfree(bdev);
-	dev_set_drvdata(&pdev->dev, NULL);
 	return error;
 }
 
@@ -144,7 +143,6 @@ static int cobalt_buttons_remove(struct platform_device *pdev)
 	input_free_polled_device(bdev->poll_dev);
 	iounmap(bdev->reg);
 	kfree(bdev);
-	dev_set_drvdata(dev, NULL);
 
 	return 0;
 }
-- 
1.7.4.1


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

end of thread, other threads:[~2013-09-21 23:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 18:08 [PATCH 1/4] Input: cobalt_btns - Remove redundant dev_set_drvdata Sachin Kamat
2013-09-06 18:08 ` [PATCH 2/4] Input: cyttsp4_core " Sachin Kamat
2013-09-06 18:08 ` [PATCH 3/4] Input: htcpen " Sachin Kamat
2013-09-06 18:08 ` [PATCH 4/4] Input: rb532_button " Sachin Kamat
2013-09-17  9:11 ` [PATCH 1/4] Input: cobalt_btns " Sachin Kamat
2013-09-18 14:49   ` Dmitry Torokhov

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).