]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mtd: onenand: omap: cleanup gpmc dependency
authorAfzal Mohammed <afzal@ti.com>
Sat, 29 Sep 2012 05:33:49 +0000 (11:03 +0530)
committerAfzal Mohammed <afzal@ti.com>
Mon, 15 Oct 2012 09:11:55 +0000 (14:41 +0530)
requesting, freeing gpmc cs is now handled fully
by gpmc, remove left out gpmc dependency as well
as unnecessary include of gpmc.h

Signed-off-by: Afzal Mohammed <afzal@ti.com>
drivers/mtd/onenand/omap2.c

index 1961be985171ce1e11abb77c9c164373cb7d4cd2..d7ef2c947daa04899cdb2f48697a33b78e3f4a32 100644 (file)
@@ -38,7 +38,6 @@
 #include <linux/regulator/consumer.h>
 
 #include <asm/mach/flash.h>
-#include <plat/gpmc.h>
 #include <linux/platform_data/mtd-onenand-omap2.h>
 #include <asm/gpio.h>
 
@@ -803,7 +802,6 @@ static int __devexit omap2_onenand_remove(struct platform_device *pdev)
        }
        iounmap(c->onenand.base);
        release_mem_region(c->phys_base, c->mem_size);
-       gpmc_cs_free(c->gpmc_cs);
        kfree(c);
 
        return 0;