aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/sa1100-flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/sa1100-flash.c')
-rw-r--r--drivers/mtd/maps/sa1100-flash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index 9133351ba483..6a8e0caf9fdc 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -403,21 +403,21 @@ static int __exit sa1100_mtd_remove(struct device *dev)
403} 403}
404 404
405#ifdef CONFIG_PM 405#ifdef CONFIG_PM
406static int sa1100_mtd_suspend(struct device *dev, pm_message_t state, u32 level) 406static int sa1100_mtd_suspend(struct device *dev, pm_message_t state)
407{ 407{
408 struct sa_info *info = dev_get_drvdata(dev); 408 struct sa_info *info = dev_get_drvdata(dev);
409 int ret = 0; 409 int ret = 0;
410 410
411 if (info && level == SUSPEND_SAVE_STATE) 411 if (info)
412 ret = info->mtd->suspend(info->mtd); 412 ret = info->mtd->suspend(info->mtd);
413 413
414 return ret; 414 return ret;
415} 415}
416 416
417static int sa1100_mtd_resume(struct device *dev, u32 level) 417static int sa1100_mtd_resume(struct device *dev)
418{ 418{
419 struct sa_info *info = dev_get_drvdata(dev); 419 struct sa_info *info = dev_get_drvdata(dev);
420 if (info && level == RESUME_RESTORE_STATE) 420 if (info)
421 info->mtd->resume(info->mtd); 421 info->mtd->resume(info->mtd);
422 return 0; 422 return 0;
423} 423}