Skip to content

Commit

Permalink
spi: spi-s3c24xx: Remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mark Brown committed Jun 1, 2013
1 parent e4aa937 commit 8471090
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,6 @@ static int s3c24xx_spi_remove(struct platform_device *dev)
{
struct s3c24xx_spi *hw = platform_get_drvdata(dev);

platform_set_drvdata(dev, NULL);

spi_bitbang_stop(&hw->bitbang);

clk_disable(hw->clk);
Expand Down

0 comments on commit 8471090

Please sign in to comment.