diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-06-17 19:06:33 +0800 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 15:02:10 +0300 |
commit | e638275e18a929103bb087acb94d2b67eb0818e0 (patch) | |
tree | 09b6c839344154b79edc181f402c2258a919021a | |
parent | d117040be074fd1c019b751515f79efe99cd7d76 (diff) | |
download | op-kernel-dev-e638275e18a929103bb087acb94d2b67eb0818e0.zip op-kernel-dev-e638275e18a929103bb087acb94d2b67eb0818e0.tar.gz |
mtd: onenand: remove redundant mtd_device_unregister before onenand_release
onenand_release() will call mtd_device_unregister(), thus remove the redundant
mtd_device_unregister() call before onenand_release().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
-rw-r--r-- | drivers/mtd/onenand/generic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c index 8152a31..7813095 100644 --- a/drivers/mtd/onenand/generic.c +++ b/drivers/mtd/onenand/generic.c @@ -97,7 +97,6 @@ static int __devexit generic_onenand_remove(struct platform_device *pdev) platform_set_drvdata(pdev, NULL); if (info) { - mtd_device_unregister(&info->mtd); onenand_release(&info->mtd); release_mem_region(res->start, size); iounmap(info->onenand.base); |