spi: spi-s3c24xx: Remove redundant platform_set_drvdata()
Setting platform data to NULL is not necessary. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
e4aa937ec7
commit
8471090479
@ -667,8 +667,6 @@ static int s3c24xx_spi_remove(struct platform_device *dev)
|
|||||||
{
|
{
|
||||||
struct s3c24xx_spi *hw = platform_get_drvdata(dev);
|
struct s3c24xx_spi *hw = platform_get_drvdata(dev);
|
||||||
|
|
||||||
platform_set_drvdata(dev, NULL);
|
|
||||||
|
|
||||||
spi_bitbang_stop(&hw->bitbang);
|
spi_bitbang_stop(&hw->bitbang);
|
||||||
|
|
||||||
clk_disable(hw->clk);
|
clk_disable(hw->clk);
|
||||||
|
Loading…
Reference in New Issue
Block a user