Commit ecb598d0 authored by Sachin Kamat's avatar Sachin Kamat Committed by Brian Norris
Browse files

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent c69ad0ef
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);