]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: bcm-qspi: Remove unnecessary platform_set_drvdata()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 9 Feb 2017 15:32:21 +0000 (15:32 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 14 Feb 2017 17:59:51 +0000 (17:59 +0000)
commit973f7dd575891d0e67469861b47f43175553f30a
tree6e0a20f16019a8f50e912ff5bd8c7319e80d5446
parent345309fa7c0c9206a5344d379b174499952d79d9
spi: bcm-qspi: Remove unnecessary platform_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: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm-qspi.c