Commit cf3b55a9 authored by Sachin Kamat's avatar Sachin Kamat Committed by David Woodhouse

mtd: onenand/samsung: Remove redundant platform_set_drvdata()

Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent f6ac1a41
...@@ -1073,7 +1073,6 @@ static int s3c_onenand_remove(struct platform_device *pdev) ...@@ -1073,7 +1073,6 @@ static int s3c_onenand_remove(struct platform_device *pdev)
release_mem_region(onenand->base_res->start, release_mem_region(onenand->base_res->start,
resource_size(onenand->base_res)); resource_size(onenand->base_res));
platform_set_drvdata(pdev, NULL);
kfree(onenand->oob_buf); kfree(onenand->oob_buf);
kfree(onenand->page_buf); kfree(onenand->page_buf);
kfree(onenand); kfree(onenand);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment