diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-03 13:37:43 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-05 21:50:08 +0200 |
commit | cf3b55a994a04c31ce3ac3119880582547e22cf2 (patch) | |
tree | 3f4d5ae2518e63f31ecbf14ae5d422305a761b98 /drivers/mtd/onenand | |
parent | mtd: onenand/omap2: Remove redundant platform_set_drvdata() (diff) | |
download | linux-cf3b55a994a04c31ce3ac3119880582547e22cf2.tar.xz linux-cf3b55a994a04c31ce3ac3119880582547e22cf2.zip |
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>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/samsung.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c index 2cf74085f935..cebc48decd06 100644 --- a/drivers/mtd/onenand/samsung.c +++ b/drivers/mtd/onenand/samsung.c @@ -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); |