mtd: OneNAND: OMAP2/3: free GPMC CS on module removal
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Aug 3 09:59:02 EDT 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3cae1cc149c40c14424162496eb5a7c8db1cd4fb
Commit: 3cae1cc149c40c14424162496eb5a7c8db1cd4fb
Parent: 00acf4a80779611a7ea77ff5b5ffab886ed5cc42
Author: Mika Korhonen <ext-mika.2.korhonen at nokia.com>
AuthorDate: Thu Jun 25 15:32:19 2009 +0300
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 3 14:22:16 2009 +0100
mtd: OneNAND: OMAP2/3: free GPMC CS on module removal
GPMC CS was not freed in omap2_onenand_remove() preventing the module
from reloading after removal.
Signed-off-by: Mika Korhonen <ext-mika.2.korhonen at nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/onenand/omap2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index 6fac1f4..0108ed4 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -770,6 +770,7 @@ static int __devexit omap2_onenand_remove(struct platform_device *pdev)
}
iounmap(c->onenand.base);
release_mem_region(c->phys_base, ONENAND_IO_SIZE);
+ gpmc_cs_free(c->gpmc_cs);
kfree(c);
return 0;
More information about the linux-mtd-cvs
mailing list