mtd: OneNAND: OMAP2/3: free GPMC CS on module removal
authorMika Korhonen <ext-mika.2.korhonen@nokia.com>
Thu, 25 Jun 2009 12:32:19 +0000 (15:32 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 3 Aug 2009 13:22:16 +0000 (14:22 +0100)
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>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/onenand/omap2.c

index 6fac1f496d4ac74c76978527d64a783bed250abf..0108ed42e877b628d773f4ee847bccd47c98bbc7 100644 (file)
@@ -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;