diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-31 13:29:08 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-01 20:18:57 +0100 |
commit | 69a01719012735f931cd1ed6aa0ac63e2a237c99 (patch) | |
tree | 844025c7ebc3772c14176b84eadec13551193caf /drivers/spi/spi-txx9.c | |
parent | e4aa937ec75df0eea0bee03bffa3303ad36c986b (diff) |
spi: spi-txx9: 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>
Diffstat (limited to 'drivers/spi/spi-txx9.c')
-rw-r--r-- | drivers/spi/spi-txx9.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c index adb853047926..4f2eecf1603b 100644 --- a/drivers/spi/spi-txx9.c +++ b/drivers/spi/spi-txx9.c @@ -425,7 +425,6 @@ exit: clk_disable(c->clk); clk_put(c->clk); } - platform_set_drvdata(dev, NULL); spi_master_put(master); return ret; } @@ -436,7 +435,6 @@ static int txx9spi_remove(struct platform_device *dev) struct txx9spi *c = spi_master_get_devdata(master); spi_unregister_master(master); - platform_set_drvdata(dev, NULL); destroy_workqueue(c->workqueue); clk_disable(c->clk); clk_put(c->clk); |