summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-11-25 12:29:35 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-04 20:23:51 -0800
commit612340b155290ac02a047bbb073a31ae4cfffdd8 (patch)
tree211ff4d306d642979072ba2ce1832bbf2e76706a /drivers/misc
parent94459a975b7d4d70c20df1a32d63825469b8d4cc (diff)
downloadlinux-612340b155290ac02a047bbb073a31ae4cfffdd8.tar.bz2
misc: eeprom_93xx46: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/eeprom/eeprom_93xx46.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/eeprom/eeprom_93xx46.c b/drivers/misc/eeprom/eeprom_93xx46.c
index 3a015abb444a..78e55b501c94 100644
--- a/drivers/misc/eeprom/eeprom_93xx46.c
+++ b/drivers/misc/eeprom/eeprom_93xx46.c
@@ -378,7 +378,6 @@ static int eeprom_93xx46_remove(struct spi_device *spi)
device_remove_file(&spi->dev, &dev_attr_erase);
sysfs_remove_bin_file(&spi->dev.kobj, &edev->bin);
- spi_set_drvdata(spi, NULL);
kfree(edev);
return 0;
}