mtd: mtdram: add missing 'const'
PATCH 1/1 mtd: mtdram: add missing 'const'
mtdram_init_device() wasn't updated along with mtd_partition.name.
Signed-off-by Brian Norris <[email protected]>
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
@@ -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
@@ -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
Brian Norris
AppliedQuoted 4 lines · Brian Norris
mtdram_init_device()wasn't updated along with mtd_partition.name.Signed-off-by Brian Norris <[email protected]>Cc Geert Uytterhoeven <[email protected]>
Pushed to l2-mtd.git.
Brian