Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+1 -1
drivers/mtd/devices/mtdram.c
··· 92 92 } 93 93 94 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 97 memset(mtd, 0, sizeof(*mtd)); 98 98
+1 -1
include/linux/mtd/mtdram.h
··· 3 3 4 4 #include <linux/mtd/mtd.h> 5 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 8 #endif /* __MTD_MTDRAM_H__ */