aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-05-29 12:16:44 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:00 -0400
commit3af035c96ac72d2d301f04ad7f253e342a7dc54b (patch)
treee09d0fe1d66865f27b5deb5b845fc71fbf85b45a /drivers/mtd/maps
parentadaf2a5d0887f9a317eca8550e59b0c92876c64f (diff)
mtd: h720x-flash 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>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/h720x-flash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/maps/h720x-flash.c b/drivers/mtd/maps/h720x-flash.c
index 7f035860a36b..f331a2c94271 100644
--- a/drivers/mtd/maps/h720x-flash.c
+++ b/drivers/mtd/maps/h720x-flash.c
@@ -60,8 +60,6 @@ static struct mtd_partition h720x_partitions[] = {
60 60
61static int nr_mtd_parts; 61static int nr_mtd_parts;
62static struct mtd_partition *mtd_parts; 62static struct mtd_partition *mtd_parts;
63static const char *probes[] = { "cmdlinepart", NULL };
64
65/* 63/*
66 * Initialize FLASH support 64 * Initialize FLASH support
67 */ 65 */
@@ -92,7 +90,7 @@ static int __init h720x_mtd_init(void)
92 if (mymtd) { 90 if (mymtd) {
93 mymtd->owner = THIS_MODULE; 91 mymtd->owner = THIS_MODULE;
94 92
95 nr_mtd_parts = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0); 93 nr_mtd_parts = parse_mtd_partitions(mymtd, NULL, &mtd_parts, 0);
96 if (nr_mtd_parts > 0) 94 if (nr_mtd_parts > 0)
97 part_type = "command line"; 95 part_type = "command line";
98 if (nr_mtd_parts <= 0) { 96 if (nr_mtd_parts <= 0) {