diff options
-rw-r--r-- | 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 214ed1e763b6..0de7a05e6de0 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) | |||
1098 | struct onenand_chip *this = mtd->priv; | 1098 | struct onenand_chip *this = mtd->priv; |
1099 | 1099 | ||
1100 | this->wait(mtd, FL_PM_SUSPENDED); | 1100 | this->wait(mtd, FL_PM_SUSPENDED); |
1101 | return mtd->suspend(mtd); | 1101 | return 0; |
1102 | } | 1102 | } |
1103 | 1103 | ||
1104 | static int s3c_pm_ops_resume(struct device *dev) | 1104 | static int s3c_pm_ops_resume(struct device *dev) |
@@ -1107,7 +1107,6 @@ static int s3c_pm_ops_resume(struct device *dev) | |||
1107 | struct mtd_info *mtd = platform_get_drvdata(pdev); | 1107 | struct mtd_info *mtd = platform_get_drvdata(pdev); |
1108 | struct onenand_chip *this = mtd->priv; | 1108 | struct onenand_chip *this = mtd->priv; |
1109 | 1109 | ||
1110 | mtd->resume(mtd); | ||
1111 | this->unlock_all(mtd); | 1110 | this->unlock_all(mtd); |
1112 | return 0; | 1111 | return 0; |
1113 | } | 1112 | } |