Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Mika Korhonen and committed by
David Woodhouse
3cae1cc1 00acf4a8

+1
+1
drivers/mtd/onenand/omap2.c
··· 770 770 } 771 771 iounmap(c->onenand.base); 772 772 release_mem_region(c->phys_base, ONENAND_IO_SIZE); 773 + gpmc_cs_free(c->gpmc_cs); 773 774 kfree(c); 774 775 775 776 return 0;