mtd: onenand/samsung: Remove redundant platform_set_drvdata()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Aug 5 16:59:03 EDT 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=cf3b55a994a04c31ce3ac3119880582547e22cf2
Commit: cf3b55a994a04c31ce3ac3119880582547e22cf2
Parent: f6ac1a410af63193542210024c3950fd1ea8ffb5
Author: Sachin Kamat <sachin.kamat at linaro.org>
AuthorDate: Fri May 3 17:07:43 2013 +0530
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 5 20:50:08 2013 +0100
mtd: onenand/samsung: Remove redundant platform_set_drvdata()
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 at linaro.org>
Cc: Kyungmin Park <kyungmin.park at samsung.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/onenand/samsung.c | 1 -
1 file changed, 1 deletion(-)
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);
More information about the linux-mtd-cvs
mailing list