Patchwork [2/3] mtd: onenand/omap2: Remove redundant platform_set_drvdata()

login
register
mail settings
Submitter Sachin Kamat
Date May 3, 2013, 11:37 a.m.
Message ID <1367581063-24295-2-git-send-email-sachin.kamat@linaro.org>
Download mbox | patch
Permalink /patch/241276/
State Accepted
Commit f6ac1a410af63193542210024c3950fd1ea8ffb5
Headers show

Comments

Sachin Kamat - May 3, 2013, 11:37 a.m.
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com>
---
 drivers/mtd/onenand/omap2.c |    1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index d98b198..cd43cea 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -810,7 +810,6 @@  static int omap2_onenand_remove(struct platform_device *pdev)
 	if (c->dma_channel != -1)
 		omap_free_dma(c->dma_channel);
 	omap2_onenand_shutdown(pdev);
-	platform_set_drvdata(pdev, NULL);
 	if (c->gpio_irq) {
 		free_irq(gpio_to_irq(c->gpio_irq), c);
 		gpio_free(c->gpio_irq);