Commit 2316d3bc authored by Kyungmin Park's avatar Kyungmin Park Committed by David Woodhouse

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: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent cdcf12b2
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment