Commit 69a01719 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

spi: spi-txx9: Remove redundant platform_set_drvdata()

Setting platform data to NULL is not necessary.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent e4aa937e
......@@ -425,7 +425,6 @@ static int txx9spi_probe(struct platform_device *dev)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment