diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-05-29 12:25:01 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:02 -0400 |
commit | ac9b0f3662f523e6aeb7669b40269ecbd2fd752b (patch) | |
tree | a60f6e4b5bf2dde2dfa2ce121b46be5457c07423 /drivers/mtd/maps/latch-addr-flash.c | |
parent | 0455dfd4c8614ae971202697f6db4d239e0b44c3 (diff) |
mtd: latch-addr-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.
Artem: tweaked the patch
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/maps/latch-addr-flash.c')
-rw-r--r-- | drivers/mtd/maps/latch-addr-flash.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/maps/latch-addr-flash.c b/drivers/mtd/maps/latch-addr-flash.c index 5936c466e901..09cf704ea02e 100644 --- a/drivers/mtd/maps/latch-addr-flash.c +++ b/drivers/mtd/maps/latch-addr-flash.c | |||
@@ -97,8 +97,6 @@ static void lf_copy_from(struct map_info *map, void *to, | |||
97 | 97 | ||
98 | static char *rom_probe_types[] = { "cfi_probe", NULL }; | 98 | static char *rom_probe_types[] = { "cfi_probe", NULL }; |
99 | 99 | ||
100 | static char *part_probe_types[] = { "cmdlinepart", NULL }; | ||
101 | |||
102 | static int latch_addr_flash_remove(struct platform_device *dev) | 100 | static int latch_addr_flash_remove(struct platform_device *dev) |
103 | { | 101 | { |
104 | struct latch_addr_flash_info *info; | 102 | struct latch_addr_flash_info *info; |
@@ -206,8 +204,7 @@ static int __devinit latch_addr_flash_probe(struct platform_device *dev) | |||
206 | } | 204 | } |
207 | info->mtd->owner = THIS_MODULE; | 205 | info->mtd->owner = THIS_MODULE; |
208 | 206 | ||
209 | err = parse_mtd_partitions(info->mtd, (const char **)part_probe_types, | 207 | err = parse_mtd_partitions(info->mtd, NULL, &info->parts, 0); |
210 | &info->parts, 0); | ||
211 | if (err > 0) { | 208 | if (err > 0) { |
212 | mtd_device_register(info->mtd, info->parts, err); | 209 | mtd_device_register(info->mtd, info->parts, err); |
213 | return 0; | 210 | return 0; |