diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-03 07:37:42 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-05 15:50:04 -0400 |
commit | f6ac1a410af63193542210024c3950fd1ea8ffb5 (patch) | |
tree | 28e85efc448f8940e904b56c94d96df324d90ba2 | |
parent | 7f1e0419f9a8737327d7ccb61ae40f9cc22b8e49 (diff) |
mtd: onenand/omap2: Remove redundant platform_set_drvdata()
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>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | drivers/mtd/onenand/omap2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index d98b198edd53..cd43ceae6f5a 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) | |||
810 | if (c->dma_channel != -1) | 810 | if (c->dma_channel != -1) |
811 | omap_free_dma(c->dma_channel); | 811 | omap_free_dma(c->dma_channel); |
812 | omap2_onenand_shutdown(pdev); | 812 | omap2_onenand_shutdown(pdev); |
813 | platform_set_drvdata(pdev, NULL); | ||
814 | if (c->gpio_irq) { | 813 | if (c->gpio_irq) { |
815 | free_irq(gpio_to_irq(c->gpio_irq), c); | 814 | free_irq(gpio_to_irq(c->gpio_irq), c); |
816 | gpio_free(c->gpio_irq); | 815 | gpio_free(c->gpio_irq); |