git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: txx9ndfmc: Use nand_release to free resources
[pandora-kernel.git]
/
drivers
/
mtd
/
nand
/
txx9ndfmc.c
diff --git
a/drivers/mtd/nand/txx9ndfmc.c
b/drivers/mtd/nand/txx9ndfmc.c
index
73af832
..
863513c
100644
(file)
--- a/
drivers/mtd/nand/txx9ndfmc.c
+++ b/
drivers/mtd/nand/txx9ndfmc.c
@@
-429,11
+429,10
@@
static int __exit txx9ndfmc_remove(struct platform_device *dev)
chip = mtd->priv;
txx9_priv = chip->priv;
+ nand_release(mtd);
#ifdef CONFIG_MTD_PARTITIONS
- del_mtd_partitions(mtd);
kfree(drvdata->parts[i]);
#endif
- del_mtd_device(mtd);
kfree(txx9_priv->mtdname);
kfree(txx9_priv);
}