mtd: onenand: omap: remove two unused functions
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Nov 13 13:59:02 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=86bc7bddc9bf7841372df5880805506228dbf4f4
Commit: 86bc7bddc9bf7841372df5880805506228dbf4f4
Parent: c7f23a70635895b5125aeb5593aaf8cb44d3a088
Author: Paul Bolle <pebolle at tiscali.nl>
AuthorDate: Wed Aug 7 20:16:49 2013 +0200
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Sun Oct 27 16:27:03 2013 -0700
mtd: onenand: omap: remove two unused functions
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 at tiscali.nl>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/onenand/omap2.c | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index 558071b..2362909 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -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);
More information about the linux-mtd-cvs
mailing list