From: Sachin Kamat Date: Tue, 8 Oct 2013 10:01:45 +0000 (+0530) Subject: mtd: socrates_nand: Remove redundant dev_set_drvdata X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ecb598d0b2ca4897a3962aed7680ee3d28dda6e8;p=linux-beck.git 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 Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index 09dde7d27178..f44c7c884a20 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);