[PATCH 1/2] mtd: nuc900_nand: add missing nand_release in nuc900_nand_remove
Axel Lin
axel.lin at gmail.com
Thu Jun 2 21:51:53 EDT 2011
Signed-off-by: Axel Lin <axel.lin at gmail.com>
---
drivers/mtd/nand/nuc900_nand.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/nuc900_nand.c b/drivers/mtd/nand/nuc900_nand.c
index 9c30a0b..fa8faed 100644
--- a/drivers/mtd/nand/nuc900_nand.c
+++ b/drivers/mtd/nand/nuc900_nand.c
@@ -339,6 +339,7 @@ static int __devexit nuc900_nand_remove(struct platform_device *pdev)
struct nuc900_nand *nuc900_nand = platform_get_drvdata(pdev);
struct resource *res;
+ nand_release(&nuc900_nand->mtd);
iounmap(nuc900_nand->reg);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
--
1.7.4.1
More information about the linux-mtd
mailing list