From: Sachin Kamat Date: Fri, 20 Sep 2013 16:38:28 +0000 (-0700) Subject: Input: ad7879-spi - remove redundant spi_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a229b70d6fdd2aebf750997a5ca4e6b8885e7f6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: ad7879-spi - remove redundant spi_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/ad7879-spi.c b/drivers/input/touchscreen/ad7879-spi.c index 606da5bd6115..1a7b1143536e 100644 --- a/drivers/input/touchscreen/ad7879-spi.c +++ b/drivers/input/touchscreen/ad7879-spi.c @@ -142,7 +142,6 @@ static int ad7879_spi_remove(struct spi_device *spi) struct ad7879 *ts = spi_get_drvdata(spi); ad7879_remove(ts); - spi_set_drvdata(spi, NULL); return 0; }