summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-txx9.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-31 09:59:08 +0200
committerMark Brown <broonie@linaro.org>2013-06-01 21:18:57 +0200
commit69a01719012735f931cd1ed6aa0ac63e2a237c99 (patch)
tree844025c7ebc3772c14176b84eadec13551193caf /drivers/spi/spi-txx9.c
parentLinux 3.10-rc3 (diff)
downloadlinux-69a01719012735f931cd1ed6aa0ac63e2a237c99.tar.xz
linux-69a01719012735f931cd1ed6aa0ac63e2a237c99.zip
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.c2
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);