Skip to content

Commit

Permalink
mtd: latch-addr-flash 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.

Artem: tweaked the patch

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 0455dfd commit ac9b0f3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mtd/maps/latch-addr-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ static void lf_copy_from(struct map_info *map, void *to,

static char *rom_probe_types[] = { "cfi_probe", NULL };

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

static int latch_addr_flash_remove(struct platform_device *dev)
{
struct latch_addr_flash_info *info;
Expand Down Expand Up @@ -206,8 +204,7 @@ static int __devinit latch_addr_flash_probe(struct platform_device *dev)
}
info->mtd->owner = THIS_MODULE;

err = parse_mtd_partitions(info->mtd, (const char **)part_probe_types,
&info->parts, 0);
err = parse_mtd_partitions(info->mtd, NULL, &info->parts, 0);
if (err > 0) {
mtd_device_register(info->mtd, info->parts, err);
return 0;
Expand Down

0 comments on commit ac9b0f3

Please sign in to comment.