mtd: onenand: omap: remove two unused functions
authorPaul Bolle <pebolle@tiscali.nl>
Wed, 7 Aug 2013 18:16:49 +0000 (20:16 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:03 +0000 (16:27 -0700)
Nothing calls omap2_onenand_rephase(). And __adjust_timing() is only
called by omap2_onenand_rephase(). Remove these two unused functions.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/onenand/omap2.c

index 558071bf92de0ed607355067b08ebea7fe3833b4..2362909d20c00f740c086049d410aa2450f81d3a 100644 (file)
@@ -573,28 +573,6 @@ static int omap2_onenand_write_bufferram(struct mtd_info *mtd, int area,
 
 static struct platform_driver omap2_onenand_driver;
 
-static int __adjust_timing(struct device *dev, void *data)
-{
-       int ret = 0;
-       struct omap2_onenand *c;
-
-       c = dev_get_drvdata(dev);
-
-       BUG_ON(c->setup == NULL);
-
-       /* DMA is not in use so this is all that is needed */
-       /* Revisit for OMAP3! */
-       ret = c->setup(c->onenand.base, &c->freq);
-
-       return ret;
-}
-
-int omap2_onenand_rephase(void)
-{
-       return driver_for_each_device(&omap2_onenand_driver.driver, NULL,
-                                     NULL, __adjust_timing);
-}
-
 static void omap2_onenand_shutdown(struct platform_device *pdev)
 {
        struct omap2_onenand *c = dev_get_drvdata(&pdev->dev);