Skip to contentSkip to conversation

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

PATCH In review Kyungmin Park 2 participants 2 messages Oct 20, 2010 – Oct 21, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: OneNAND: S5PC110: Fix double call suspend & resume function

From: Kyungmin Park <[email protected]>

The suspend & resume called from mtd core. So no need to call at driver.

---

drivers/mtd/onenand/samsung.c +1 -2
index 214ed1e..0de7a05 100644
@@ -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;
 }