diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/maps/sa1100-flash.c | 9 | ||||
-rw-r--r-- | drivers/mtd/mtdchar.c | 4 |
2 files changed, 7 insertions, 6 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 | } |
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 1ed602a0f24c..c534fd5d95cb 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -24,10 +24,10 @@ static void mtd_notify_add(struct mtd_info* mtd) | |||
24 | if (!mtd) | 24 | if (!mtd) |
25 | return; | 25 | return; |
26 | 26 | ||
27 | class_device_create(mtd_class, MKDEV(MTD_CHAR_MAJOR, mtd->index*2), | 27 | class_device_create(mtd_class, NULL, MKDEV(MTD_CHAR_MAJOR, mtd->index*2), |
28 | NULL, "mtd%d", mtd->index); | 28 | NULL, "mtd%d", mtd->index); |
29 | 29 | ||
30 | class_device_create(mtd_class, | 30 | class_device_create(mtd_class, NULL, |
31 | MKDEV(MTD_CHAR_MAJOR, mtd->index*2+1), | 31 | MKDEV(MTD_CHAR_MAJOR, mtd->index*2+1), |
32 | NULL, "mtd%dro", mtd->index); | 32 | NULL, "mtd%dro", mtd->index); |
33 | } | 33 | } |