diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-01-11 18:51:45 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-20 14:55:23 -0500 |
commit | 0a8899b31a7d6c4a3bc7fdbd7c8c1fc79e726363 (patch) | |
tree | 44979142f7fa2f57565b22d6ccfc41ae35e786c7 | |
parent | 99ed1a167578f85963a0cdf5fd7b2291eaecc400 (diff) |
mtd: mtdram: add missing 'const'
mtdram_init_device() wasn't updated along with mtd_partition.name.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
-rw-r--r-- | drivers/mtd/devices/mtdram.c | 2 | ||||
-rw-r--r-- | include/linux/mtd/mtdram.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index ec59d65897fb..8e285089229c 100644 --- a/drivers/mtd/devices/mtdram.c +++ b/drivers/mtd/devices/mtdram.c | |||
@@ -92,7 +92,7 @@ static void __exit cleanup_mtdram(void) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, | 94 | int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, |
95 | unsigned long size, char *name) | 95 | unsigned long size, const char *name) |
96 | { | 96 | { |
97 | memset(mtd, 0, sizeof(*mtd)); | 97 | memset(mtd, 0, sizeof(*mtd)); |
98 | 98 | ||
diff --git a/include/linux/mtd/mtdram.h b/include/linux/mtd/mtdram.h index 68891313875d..628a6a21ddf0 100644 --- a/include/linux/mtd/mtdram.h +++ b/include/linux/mtd/mtdram.h | |||
@@ -3,6 +3,6 @@ | |||
3 | 3 | ||
4 | #include <linux/mtd/mtd.h> | 4 | #include <linux/mtd/mtd.h> |
5 | int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, | 5 | int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, |
6 | unsigned long size, char *name); | 6 | unsigned long size, const char *name); |
7 | 7 | ||
8 | #endif /* __MTD_MTDRAM_H__ */ | 8 | #endif /* __MTD_MTDRAM_H__ */ |