Skip to content

Commit

Permalink
mtd: OneNAND: S5PC110: Fix double call suspend & resume function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed Oct 25, 2010
1 parent cdcf12b commit 2316d3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mtd/onenand/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
Expand Down

0 comments on commit 2316d3b

Please sign in to comment.