From: Sachin Kamat Date: Fri, 3 May 2013 11:37:42 +0000 (+0530) Subject: mtd: onenand/omap2: Remove redundant platform_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f6ac1a410af63193542210024c3950fd1ea8ffb5;p=linux-beck.git 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 Cc: Jarkko Lavinen Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- 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) 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);