summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/ad714x-spi.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-20 09:12:52 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-09-20 09:58:24 -0700
commit49e6c574508efc9c0914077af164245163ce1638 (patch)
treeab1d87b874a752fc9e2b620ddb21eef875a212c4 /drivers/input/misc/ad714x-spi.c
parentaed06b9cfcabf8644ac5f6f108c0b3d01522f88b (diff)
downloadop-kernel-dev-49e6c574508efc9c0914077af164245163ce1638.zip
op-kernel-dev-49e6c574508efc9c0914077af164245163ce1638.tar.gz
Input: ad714x-spi - remove redundant spi_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/ad714x-spi.c')
-rw-r--r--drivers/input/misc/ad714x-spi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/ad714x-spi.c b/drivers/input/misc/ad714x-spi.c
index 6189148..3a90b710 100644
--- a/drivers/input/misc/ad714x-spi.c
+++ b/drivers/input/misc/ad714x-spi.c
@@ -108,7 +108,6 @@ static int ad714x_spi_remove(struct spi_device *spi)
struct ad714x_chip *chip = spi_get_drvdata(spi);
ad714x_remove(chip);
- spi_set_drvdata(spi, NULL);
return 0;
}
OpenPOWER on IntegriCloud