diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-28 16:09:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-28 16:09:47 -0400 |
commit | 84860bf0644d7c45afe7ddbd30731c3e3c371fae (patch) | |
tree | d6c4b98a9c3fd9981e7fcc5d7729c9e01e327767 /drivers/mtd/maps | |
parent | 8caf89157d64f1eedba37113afb4b303b2b3e301 (diff) | |
parent | 6fbfddcb52d8d9fa2cd209f5ac2a1c87497d55b5 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
Diffstat (limited to 'drivers/mtd/maps')
-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 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 |
406 | static int sa1100_mtd_suspend(struct device *dev, pm_message_t state, u32 level) | 406 | static 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 | ||
417 | static int sa1100_mtd_resume(struct device *dev, u32 level) | 417 | static 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 | } |