]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: dataflash: remove unnecessary spi_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 25 Nov 2013 03:24:22 +0000 (12:24 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:20 +0000 (11:22 -0800)
commit3b51267bdee295bc26e52bec41a1f258e8adbee0
treed2f0c7d32b8c15d8ab445c2b2e3ab7d01ab253e7
parentb29b9eef79bb88075cd65cfc2762d1c1c4254433
mtd: dataflash: 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: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/mtd_dataflash.c