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