From: Axel Lin Date: Fri, 3 Jun 2011 01:51:53 +0000 (+0800) Subject: mtd: nuc900_nand: add missing nand_release in nuc900_nand_remove X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=43c6871cae298e28700ca1ea76dc94b5f69446bc;p=linux-beck.git mtd: nuc900_nand: add missing nand_release in nuc900_nand_remove Signed-off-by: Axel Lin Acked-by: Wan ZongShun Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/nuc900_nand.c b/drivers/mtd/nand/nuc900_nand.c index 9c30a0b03171..fa8faedfad6e 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);