Skip to content

Commit

Permalink
mtd: impa7 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 3af035c commit cec25c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mtd/maps/impa7.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ static struct mtd_partition static_partitions[] =
static int mtd_parts_nb[NUM_FLASHBANKS];
static struct mtd_partition *mtd_parts[NUM_FLASHBANKS];

static const char *probes[] = { "cmdlinepart", NULL };

static int __init init_impa7(void)
{
Expand Down Expand Up @@ -98,7 +97,7 @@ static int __init init_impa7(void)
impa7_mtd[i]->owner = THIS_MODULE;
devicesfound++;
mtd_parts_nb[i] = parse_mtd_partitions(impa7_mtd[i],
probes,
NULL,
&mtd_parts[i],
0);
if (mtd_parts_nb[i] > 0) {
Expand Down

0 comments on commit cec25c7

Please sign in to comment.