aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-05-29 12:16:46 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:00 -0400
commit8d130a74e40da7dc4c572fbf0ba533fac17f4190 (patch)
treeff6ec7c70bdbe76c11605cff3431222368dad394
parentcec25c7290d1b9d514686be97e9e62c89dd3308f (diff)
mtd: intel_vr_nor don't specify default parsing options
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>
-rw-r--r--drivers/mtd/maps/intel_vr_nor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/intel_vr_nor.c b/drivers/mtd/maps/intel_vr_nor.c
index d2f47be8754b..fd612c7ec1f6 100644
--- a/drivers/mtd/maps/intel_vr_nor.c
+++ b/drivers/mtd/maps/intel_vr_nor.c
@@ -72,11 +72,10 @@ static void __devexit vr_nor_destroy_partitions(struct vr_nor_mtd *p)
72static int __devinit vr_nor_init_partitions(struct vr_nor_mtd *p) 72static int __devinit vr_nor_init_partitions(struct vr_nor_mtd *p)
73{ 73{
74 struct mtd_partition *parts; 74 struct mtd_partition *parts;
75 static const char *part_probes[] = { "cmdlinepart", NULL };
76 75
77 /* register the flash bank */ 76 /* register the flash bank */
78 /* partition the flash bank */ 77 /* partition the flash bank */
79 p->nr_parts = parse_mtd_partitions(p->info, part_probes, &parts, 0); 78 p->nr_parts = parse_mtd_partitions(p->info, NULL, &parts, 0);
80 return mtd_device_register(p->info, parts, p->nr_parts); 79 return mtd_device_register(p->info, parts, p->nr_parts);
81} 80}
82 81