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>
This commit is contained in:
Sachin Kamat 2013-10-08 15:31:45 +05:30 committed by Brian Norris
parent c69ad0ef2f
commit ecb598d0b2
1 changed files with 0 additions and 2 deletions

View File

@ -211,7 +211,6 @@ static int socrates_nand_probe(struct platform_device *ofdev)
nand_release(mtd); nand_release(mtd);
out: out:
dev_set_drvdata(&ofdev->dev, NULL);
iounmap(host->io_base); iounmap(host->io_base);
kfree(host); kfree(host);
return res; return res;
@ -227,7 +226,6 @@ static int socrates_nand_remove(struct platform_device *ofdev)
nand_release(mtd); nand_release(mtd);
dev_set_drvdata(&ofdev->dev, NULL);
iounmap(host->io_base); iounmap(host->io_base);
kfree(host); kfree(host);