]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] cmdlinepart: Missing partition info is not an error
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 14 Feb 2008 16:00:10 +0000 (17:00 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Apr 2008 18:10:15 +0000 (19:10 +0100)
Return 0 partitions instead of -EINVAL on no mtdpart= argument in kernel
cmdline or missing partition info for device.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/cmdlinepart.c

index 3e090436396da7712951fd5a0c34d6e5f291fbc5..e472a0e9de9d913228cfa47bc8351b9f360c9e12 100644 (file)
@@ -310,9 +310,6 @@ static int parse_cmdline_partitions(struct mtd_info *master,
        struct cmdline_mtd_partition *part;
        char *mtd_id = master->name;
 
-       if(!cmdline)
-               return -EINVAL;
-
        /* parse command line */
        if (!cmdline_parsed)
                mtdpart_setup_real(cmdline);
@@ -343,7 +340,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
                        return part->num_parts;
                }
        }
-       return -EINVAL;
+       return 0;
 }