]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: impa7 don't specify default parsing options
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sun, 29 May 2011 16:16:45 +0000 (20:16 +0400)
committerArtem Bityutskiy <dedekind1@gmail.com>
Thu, 23 Jun 2011 08:43:37 +0000 (11:43 +0300)
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>
drivers/mtd/maps/impa7.c

index 404a50cbafa0596ef7ea8d2e0d760607d90bf3df..2d45a489622e8852e6b95fd15ba1034caff7ecde 100644 (file)
@@ -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)
 {
@@ -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) {