Commit d9740f6a authored by Jingoo Han's avatar Jingoo Han Committed by Mark Brown

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent fa4bd4f1
...@@ -888,7 +888,6 @@ static int bfin_spi_probe(struct platform_device *pdev) ...@@ -888,7 +888,6 @@ static int bfin_spi_probe(struct platform_device *pdev)
err_free_tx_dma: err_free_tx_dma:
free_dma(tx_dma); free_dma(tx_dma);
err_put_master: err_put_master:
platform_set_drvdata(pdev, NULL);
spi_master_put(master); spi_master_put(master);
return ret; return ret;
...@@ -905,7 +904,6 @@ static int bfin_spi_remove(struct platform_device *pdev) ...@@ -905,7 +904,6 @@ static int bfin_spi_remove(struct platform_device *pdev)
free_dma(drv_data->rx_dma); free_dma(drv_data->rx_dma);
free_dma(drv_data->tx_dma); free_dma(drv_data->tx_dma);
platform_set_drvdata(pdev, NULL);
spi_unregister_master(drv_data->master); spi_unregister_master(drv_data->master);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment