summaryrefslogtreecommitdiff
path: root/drivers/spi/spidev.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 18:55:20 +0900
committerMark Brown <broonie@linaro.org>2013-09-17 00:19:50 +0100
commit91a92e12baf3c8cc2e353b3a70ddca9f9a59cf02 (patch)
tree3248b43ec285287a092b584be8e8d02b7489748d /drivers/spi/spidev.c
parent272b98c6455f00884f0350f775c5342358ebb73f (diff)
spi: spidev: remove unnecessary spi_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spidev.c')
-rw-r--r--drivers/spi/spidev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index ca5bcfe874d0..c53556a1899a 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -629,7 +629,6 @@ static int spidev_remove(struct spi_device *spi)
/* make sure ops on existing fds can abort cleanly */
spin_lock_irq(&spidev->spi_lock);
spidev->spi = NULL;
- spi_set_drvdata(spi, NULL);
spin_unlock_irq(&spidev->spi_lock);
/* prevent new opens */