Skip to contentSkip to conversation

mtd: mtdram: add missing 'const'

PATCH Applied Brian Norris 1 participant 2 messages Jan 11, 2014 – Jan 20, 2014 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: mtdram: add missing 'const'

mtdram_init_device() wasn't updated along with mtd_partition.name.

Cc Geert Uytterhoeven <[email protected]>
---
 drivers/mtd/devices/mtdram.c | 2 +-
 include/linux/mtd/mtdram.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/devices/mtdram.c +1 -1
index ec59d65897fb..8e285089229c 100644
@@ -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));
 
include/linux/mtd/mtdram.h +1 -1
index 68891313875d..628a6a21ddf0 100644
@@ -3,6 +3,6 @@
 
 #include <linux/mtd/mtd.h>
 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
-			unsigned long size, char *name);
+			unsigned long size, const char *name);
 
 #endif /* __MTD_MTDRAM_H__ */
Signature · 1 line
1.8.3.2