summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-01-12 00:51:45 +0100
committerBrian Norris <computersforpeace@gmail.com>2014-01-20 20:55:23 +0100
commit0a8899b31a7d6c4a3bc7fdbd7c8c1fc79e726363 (patch)
tree44979142f7fa2f57565b22d6ccfc41ae35e786c7 /drivers/mtd
parentmtd: m25p80: assign default read command (diff)
downloadlinux-0a8899b31a7d6c4a3bc7fdbd7c8c1fc79e726363.tar.xz
linux-0a8899b31a7d6c4a3bc7fdbd7c8c1fc79e726363.zip
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/devices/mtdram.c2
1 files changed, 1 insertions, 1 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)
}
int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
- unsigned long size, char *name)
+ unsigned long size, const char *name)
{
memset(mtd, 0, sizeof(*mtd));