Patchwork [3/3] mtd: onenand/samsung: Remove redundant platform_set_drvdata()

login
register
mail settings
Submitter Sachin Kamat
Date May 3, 2013, 11:37 a.m.
Message ID <1367581063-24295-3-git-send-email-sachin.kamat@linaro.org>
Download mbox | patch
Permalink /patch/241277/
State Accepted
Commit cf3b55a994a04c31ce3ac3119880582547e22cf2
Headers show

Comments

Sachin Kamat - May 3, 2013, 11:37 a.m.
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/mtd/onenand/samsung.c |    1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index 2cf7408..cebc48d 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -1073,7 +1073,6 @@  static int s3c_onenand_remove(struct platform_device *pdev)
 	release_mem_region(onenand->base_res->start,
 			   resource_size(onenand->base_res));
 
-	platform_set_drvdata(pdev, NULL);
 	kfree(onenand->oob_buf);
 	kfree(onenand->page_buf);
 	kfree(onenand);