2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 00:26:39 +08:00

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@samsung.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
Kyungmin Park 2010-10-20 17:31:02 +09:00 committed by David Woodhouse
parent cdcf12b211
commit 2316d3bc95

View File

@ -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;
}