[PATCH 2/3] mtd: onenand/omap2: Remove redundant platform_set_drvdata()
Sachin Kamat
sachin.kamat at linaro.org
Fri May 3 07:37:42 EDT 2013
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 at linaro.org>
Cc: Jarkko Lavinen <jarkko.lavinen at nokia.com>
---
drivers/mtd/onenand/omap2.c | 1 -
1 file changed, 1 deletion(-)
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);
--
1.7.9.5
More information about the linux-mtd
mailing list