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