]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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)
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

index 99b3057531a534851898e3dd91100759087423fe..958fb4ee972d01914b433e5ce545ea333b319760 100644 (file)
@@ -1408,7 +1408,6 @@ int bcm_qspi_remove(struct platform_device *pdev)
 {
        struct bcm_qspi *qspi = platform_get_drvdata(pdev);
 
-       platform_set_drvdata(pdev, NULL);
        bcm_qspi_hw_uninit(qspi);
        clk_disable_unprepare(qspi->clk);
        kfree(qspi->dev_ids);