Thread (6 messages) 6 messages, 2 authors, 2013-09-21

[PATCH 3/4] Input: htcpen - Remove redundant dev_set_drvdata

flat view
STALE4767d

From: Sachin Kamat <hidden>
Date: 2013-09-06 18:08:27
Subsystem: htcpen touchscreen driver, input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Pau Oliva Fora, Dmitry Torokhov, Linus Torvalds

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

Signed-off-by: Sachin Kamat <redacted>
Cc: Pau Oliva Fora <pof@eslack.org>
---
 drivers/input/touchscreen/htcpen.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/touchscreen/htcpen.c b/drivers/input/touchscreen/htcpen.c
index 6650085..92e2243 100644
--- a/drivers/input/touchscreen/htcpen.c
+++ b/drivers/input/touchscreen/htcpen.c
@@ -186,8 +186,6 @@ static int htcpen_isa_remove(struct device *dev, unsigned int id)
 	release_region(HTCPEN_PORT_INIT, 1);
 	release_region(HTCPEN_PORT_IRQ_CLEAR, 1);
 
-	dev_set_drvdata(dev, NULL);
-
 	return 0;
 }
 
-- 
1.7.4.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help