From: Jingoo Han Date: Tue, 10 Sep 2013 09:55:20 +0000 (+0900) Subject: spi: spidev: remove unnecessary spi_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=91a92e12baf3c8cc2e353b3a70ddca9f9a59cf02;p=linux-beck.git 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 Signed-off-by: Mark Brown --- 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 */