summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-18 07:47:53 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-09-18 07:53:30 -0700
commit4906a31b4c60b2499e63737f3194c596d4f86482 (patch)
tree2dead9d703c5f0b937e55338f607862f0560d136 /drivers/input
parent5d67e4c6f50d2706ef9cca522a093b30c8cba66a (diff)
downloadtalos-op-linux-4906a31b4c60b2499e63737f3194c596d4f86482.tar.gz
talos-op-linux-4906a31b4c60b2499e63737f3194c596d4f86482.zip
Input: htcpen - remove redundant dev_set_drvdata
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> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/htcpen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/htcpen.c b/drivers/input/touchscreen/htcpen.c
index 66500852341b..92e2243fb77d 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;
}
OpenPOWER on IntegriCloud