projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d117040
)
mtd: onenand: remove redundant mtd_device_unregister before onenand_release
author
Axel Lin
<axel.lin@gmail.com>
Fri, 17 Jun 2011 11:06:33 +0000
(19:06 +0800)
committer
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:10 +0000
(15:02 +0300)
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>
drivers/mtd/onenand/generic.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/onenand/generic.c
b/drivers/mtd/onenand/generic.c
index
8152a31
..
7813095
100644
(file)
--- 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);