diff options
Diffstat (limited to 'drivers/mtd/maps/sa1100-flash.c')
-rw-r--r-- | drivers/mtd/maps/sa1100-flash.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c index 8dcaa357b4bb..6a8e0caf9fdc 100644 --- a/drivers/mtd/maps/sa1100-flash.c +++ b/drivers/mtd/maps/sa1100-flash.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/mtd/partitions.h> | 21 | #include <linux/mtd/partitions.h> |
22 | #include <linux/mtd/concat.h> | 22 | #include <linux/mtd/concat.h> |
23 | 23 | ||
24 | #include <asm/hardware.h> | ||
24 | #include <asm/io.h> | 25 | #include <asm/io.h> |
25 | #include <asm/sizes.h> | 26 | #include <asm/sizes.h> |
26 | #include <asm/mach/flash.h> | 27 | #include <asm/mach/flash.h> |
@@ -402,21 +403,21 @@ static int __exit sa1100_mtd_remove(struct device *dev) | |||
402 | } | 403 | } |
403 | 404 | ||
404 | #ifdef CONFIG_PM | 405 | #ifdef CONFIG_PM |
405 | 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) |
406 | { | 407 | { |
407 | struct sa_info *info = dev_get_drvdata(dev); | 408 | struct sa_info *info = dev_get_drvdata(dev); |
408 | int ret = 0; | 409 | int ret = 0; |
409 | 410 | ||
410 | if (info && level == SUSPEND_SAVE_STATE) | 411 | if (info) |
411 | ret = info->mtd->suspend(info->mtd); | 412 | ret = info->mtd->suspend(info->mtd); |
412 | 413 | ||
413 | return ret; | 414 | return ret; |
414 | } | 415 | } |
415 | 416 | ||
416 | static int sa1100_mtd_resume(struct device *dev, u32 level) | 417 | static int sa1100_mtd_resume(struct device *dev) |
417 | { | 418 | { |
418 | struct sa_info *info = dev_get_drvdata(dev); | 419 | struct sa_info *info = dev_get_drvdata(dev); |
419 | if (info && level == RESUME_RESTORE_STATE) | 420 | if (info) |
420 | info->mtd->resume(info->mtd); | 421 | info->mtd->resume(info->mtd); |
421 | return 0; | 422 | return 0; |
422 | } | 423 | } |