From: Sachin Kamat Date: Wed, 18 Sep 2013 14:47:53 +0000 (-0700) Subject: Input: htcpen - remove redundant dev_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4906a31b4c60b2499e63737f3194c596d4f86482;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Dmitry Torokhov --- 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; }