mtd: socrates_nand: Remove redundant dev_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 8 Oct 2013 10:01:45 +0000 (15:31 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:50 +0000 (23:32 -0800)
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>
drivers/mtd/nand/socrates_nand.c

index 09dde7d27178c72b4f058da3ed9699c0b028c8e5..f44c7c884a20662c138c5fa4fee4cf1d67378085 100644 (file)
@@ -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);