]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mtd/cmdlinepart.c
ARM: OMAP: fix uninitialized warning
[linux-2.6-omap-h63xx.git] / drivers / mtd / cmdlinepart.c
index 68782ab2f0ded68b047de57afd132801652bc815..69f471b94b1eeec4f6a4aec7ba25a865826005d7 100644 (file)
@@ -306,7 +306,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
        unsigned long offset;
        int i;
        struct cmdline_mtd_partition *part;
-       char *mtd_id = master->name;
+       const char *mtd_id = master->name;
 
        /* parse command line */
        if (!cmdline_parsed)
@@ -349,7 +349,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
  *
  * This function needs to be visible for bootloaders.
  */
-static int mtdpart_setup(char *s)
+int mtdpart_setup(char *s)
 {
        cmdline = s;
        return 1;