mtd: onenand/generic: 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=7f1e0419f9a8737327d7ccb61ae40f9cc22b8e49
Commit: 7f1e0419f9a8737327d7ccb61ae40f9cc22b8e49
Parent: 33777e6676ca60652bd48c7867641fb779106909
Author: Sachin Kamat <sachin.kamat at linaro.org>
AuthorDate: Fri May 3 17:07:41 2013 +0530
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 5 20:50:00 2013 +0100
mtd: onenand/generic: 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/generic.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
index 9f11562..42520a3 100644
--- a/drivers/mtd/onenand/generic.c
+++ b/drivers/mtd/onenand/generic.c
@@ -94,8 +94,6 @@ static int generic_onenand_remove(struct platform_device *pdev)
struct resource *res = pdev->resource;
unsigned long size = resource_size(res);
- platform_set_drvdata(pdev, NULL);
-
if (info) {
onenand_release(&info->mtd);
release_mem_region(res->start, size);
More information about the linux-mtd-cvs
mailing list