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>
err_free_tx_dma:
free_dma(tx_dma);
err_put_master:
- platform_set_drvdata(pdev, NULL);
spi_master_put(master);
return ret;
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;
}