Skip to content

Commit

Permalink
[MTD] cmdlinepart: Missing partition info is not an error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Korsgaard authored and David Woodhouse committed Apr 22, 2008
1 parent c3f08b3 commit b0d06af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mtd/cmdlinepart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -343,7 +340,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
return part->num_parts;
}
}
return -EINVAL;
return 0;
}


Expand Down

0 comments on commit b0d06af

Please sign in to comment.