From: Sachin Kamat Date: Fri, 20 Sep 2013 16:38:05 +0000 (-0700) Subject: Input: ad7877 - remove redundant spi_set_drvdata X-Git-Tag: accepted/tizen/common/20141203.182822~153^2~39^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=993c379219c0aa069ab046305b6b6a87a29c1d88;p=platform%2Fkernel%2Flinux-arm64.git Input: ad7877 - 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/ad7877.c b/drivers/input/touchscreen/ad7877.c index f3a174a..69834dd 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c @@ -806,7 +806,6 @@ err_free_irq: err_free_mem: input_free_device(input_dev); kfree(ts); - spi_set_drvdata(spi, NULL); return err; } @@ -823,7 +822,6 @@ static int ad7877_remove(struct spi_device *spi) kfree(ts); dev_dbg(&spi->dev, "unregistered touchscreen\n"); - spi_set_drvdata(spi, NULL); return 0; }