diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 18:38:46 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-09-20 18:58:31 +0200 |
commit | c7c8b533c7be077acf6cfee6d0f83ca57b55a19a (patch) | |
tree | c61e080ef6e5e45ad69e483fcbf84074021b9f5d /drivers/input | |
parent | Input: ad7879-spi - remove redundant spi_set_drvdata (diff) | |
download | linux-c7c8b533c7be077acf6cfee6d0f83ca57b55a19a.tar.xz linux-c7c8b533c7be077acf6cfee6d0f83ca57b55a19a.zip |
Input: tsc2005 - 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')
-rw-r--r-- | drivers/input/touchscreen/tsc2005.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c index 7213e8b07e79..811353353917 100644 --- a/drivers/input/touchscreen/tsc2005.c +++ b/drivers/input/touchscreen/tsc2005.c @@ -678,7 +678,6 @@ static int tsc2005_probe(struct spi_device *spi) err_remove_sysfs: sysfs_remove_group(&spi->dev.kobj, &tsc2005_attr_group); err_clear_drvdata: - spi_set_drvdata(spi, NULL); free_irq(spi->irq, ts); err_free_mem: input_free_device(input_dev); @@ -696,7 +695,6 @@ static int tsc2005_remove(struct spi_device *spi) input_unregister_device(ts->idev); kfree(ts); - spi_set_drvdata(spi, NULL); return 0; } |