From: Mika Korhonen Date: Thu, 25 Jun 2009 12:32:19 +0000 (+0300) Subject: mtd: OneNAND: OMAP2/3: free GPMC CS on module removal X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cae1cc149c40c14424162496eb5a7c8db1cd4fb;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index 6fac1f496d4..0108ed42e87 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;