mtd: OneNAND: S5PC110: Fix double call suspend & resume function

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Oct 24 20:59:12 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=2316d3bc95ff65b7c0c40c70db83455912cf0328
Commit:     2316d3bc95ff65b7c0c40c70db83455912cf0328
Parent:     cdcf12b211d45bd68acae9d8189275d29d500d12
Author:     Kyungmin Park <kyungmin.park at samsung.com>
AuthorDate: Wed Oct 20 17:31:02 2010 +0900
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Oct 25 01:36:14 2010 +0100

    mtd: OneNAND: S5PC110: Fix double call suspend & resume function
    
    The suspend & resume called from mtd core. So no need to call at driver.
    
    Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/onenand/samsung.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index 214ed1e..0de7a05 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -1098,7 +1098,7 @@ static int s3c_pm_ops_suspend(struct device *dev)
 	struct onenand_chip *this = mtd->priv;
 
 	this->wait(mtd, FL_PM_SUSPENDED);
-	return mtd->suspend(mtd);
+	return 0;
 }
 
 static  int s3c_pm_ops_resume(struct device *dev)
@@ -1107,7 +1107,6 @@ static  int s3c_pm_ops_resume(struct device *dev)
 	struct mtd_info *mtd = platform_get_drvdata(pdev);
 	struct onenand_chip *this = mtd->priv;
 
-	mtd->resume(mtd);
 	this->unlock_all(mtd);
 	return 0;
 }



More information about the linux-mtd-cvs mailing list