mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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@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>
This commit is contained in:
parent
f6ac1a410a
commit
cf3b55a994
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue