summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-03 17:07:41 +0530
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-08-05 20:50:00 +0100
commit7f1e0419f9a8737327d7ccb61ae40f9cc22b8e49 (patch)
treeab7ec1981fd7bf4d5adc32ab54f8efe33c3552c0 /drivers/mtd/onenand
parent33777e6676ca60652bd48c7867641fb779106909 (diff)
downloadop-kernel-dev-7f1e0419f9a8737327d7ccb61ae40f9cc22b8e49.zip
op-kernel-dev-7f1e0419f9a8737327d7ccb61ae40f9cc22b8e49.tar.gz
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@linaro.org> Cc: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/generic.c2
1 files changed, 0 insertions, 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);
OpenPOWER on IntegriCloud