diff mbox

[3/3] spi: spi-txx9: Remove redundant platform_set_drvdata()

Message ID 1369987148-22970-3-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat May 31, 2013, 7:59 a.m. UTC
Setting platform data to NULL is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/spi/spi-txx9.c |    2 --
 1 file changed, 2 deletions(-)

Comments

Mark Brown June 1, 2013, 7:19 p.m. UTC | #1
On Fri, May 31, 2013 at 01:29:08PM +0530, Sachin Kamat wrote:
> Setting platform data to NULL is not necessary.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c
index cefd956..e9b7681 100644
--- a/drivers/spi/spi-txx9.c
+++ b/drivers/spi/spi-txx9.c
@@ -419,7 +419,6 @@  exit:
 		clk_disable(c->clk);
 		clk_put(c->clk);
 	}
-	platform_set_drvdata(dev, NULL);
 	spi_master_put(master);
 	return ret;
 }
@@ -430,7 +429,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);