diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-22 11:02:17 +0900 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-22 10:58:42 +0100 |
commit | d9740f6aa667cd5a145f976acd6029d5ea01fc58 (patch) | |
tree | beac70525597172e800715d27c578cb402ab4e72 /drivers | |
parent | fa4bd4f1ade784d9cbed67ab228d0ad5edb3830d (diff) | |
download | op-kernel-dev-d9740f6aa667cd5a145f976acd6029d5ea01fc58.zip op-kernel-dev-d9740f6aa667cd5a145f976acd6029d5ea01fc58.tar.gz |
spi: bfin-v3: 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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi-bfin-v3.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-bfin-v3.c b/drivers/spi/spi-bfin-v3.c index 603d7e9..914f9fe 100644 --- a/drivers/spi/spi-bfin-v3.c +++ b/drivers/spi/spi-bfin-v3.c @@ -888,7 +888,6 @@ err_free_rx_dma: err_free_tx_dma: free_dma(tx_dma); err_put_master: - platform_set_drvdata(pdev, NULL); spi_master_put(master); return ret; @@ -905,7 +904,6 @@ static int bfin_spi_remove(struct platform_device *pdev) free_dma(drv_data->rx_dma); free_dma(drv_data->tx_dma); - platform_set_drvdata(pdev, NULL); spi_unregister_master(drv_data->master); return 0; } |