Input: htcpen - remove redundant dev_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 18 Sep 2013 14:47:53 +0000 (07:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Sep 2013 14:53:30 +0000 (07:53 -0700)
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>
drivers/input/touchscreen/htcpen.c

index 66500852341b66319b634133b3f0930f3dc3f2ec..92e2243fb77d9a3b1b3e13316ea38e0072aed7aa 100644 (file)
@@ -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;
 }