Skip to content

Commit

Permalink
mtd: h720x-flash don't specify default parsing options
Browse files Browse the repository at this point in the history
Since 'cmdline, NULL' is now a default for parse_mtd_partitions, don't specify
this in every driver, instead pass NULL to force parse_mtd_partitions
to use default.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent adaf2a5 commit 3af035c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mtd/maps/h720x-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ static struct mtd_partition h720x_partitions[] = {

static int nr_mtd_parts;
static struct mtd_partition *mtd_parts;
static const char *probes[] = { "cmdlinepart", NULL };

/*
* Initialize FLASH support
*/
Expand Down Expand Up @@ -92,7 +90,7 @@ static int __init h720x_mtd_init(void)
if (mymtd) {
mymtd->owner = THIS_MODULE;

nr_mtd_parts = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0);
nr_mtd_parts = parse_mtd_partitions(mymtd, NULL, &mtd_parts, 0);
if (nr_mtd_parts > 0)
part_type = "command line";
if (nr_mtd_parts <= 0) {
Expand Down

0 comments on commit 3af035c

Please sign in to comment.