summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-08 15:31:45 +0530
committerBrian Norris <computersforpeace@gmail.com>2013-11-06 23:32:50 -0800
commitecb598d0b2ca4897a3962aed7680ee3d28dda6e8 (patch)
tree556838c397e40e6bf4bf4d608f37b9fc52b27694 /drivers/mtd/nand
parentc69ad0ef2fa58168b9aec7f7d1561c9e43376239 (diff)
downloadop-kernel-dev-ecb598d0b2ca4897a3962aed7680ee3d28dda6e8.zip
op-kernel-dev-ecb598d0b2ca4897a3962aed7680ee3d28dda6e8.tar.gz
mtd: socrates_nand: Remove redundant dev_set_drvdata
Driver core will set the driver data to NULL upon detach or probe failure. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/socrates_nand.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c
index 09dde7d..f44c7c8 100644
--- a/drivers/mtd/nand/socrates_nand.c
+++ b/drivers/mtd/nand/socrates_nand.c
@@ -211,7 +211,6 @@ static int socrates_nand_probe(struct platform_device *ofdev)
nand_release(mtd);
out:
- dev_set_drvdata(&ofdev->dev, NULL);
iounmap(host->io_base);
kfree(host);
return res;
@@ -227,7 +226,6 @@ static int socrates_nand_remove(struct platform_device *ofdev)
nand_release(mtd);
- dev_set_drvdata(&ofdev->dev, NULL);
iounmap(host->io_base);
kfree(host);
OpenPOWER on IntegriCloud