Patchwork MTD: OneNAND OMAP2/3: Free GPMC CS on module removal

login
register
mail settings
Submitter Mika Korhonen
Date June 25, 2009, 12:32 p.m.
Message ID <1245933139-6658-1-git-send-email-ext-mika.2.korhonen@nokia.com>
Download mbox | patch
Permalink /patch/29169/
State New
Headers show

Comments

Mika Korhonen - June 25, 2009, 12:32 p.m.
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@nokia.com>
---
 drivers/mtd/onenand/omap2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index 38d656b..352fcc2 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;