1 --- a/drivers/mtd/maps/physmap.c
2 +++ b/drivers/mtd/maps/physmap.c
3 @@ -170,6 +170,13 @@ static int physmap_flash_probe(struct pl
6 #ifdef CONFIG_MTD_PARTITIONS
7 + if (physmap_data->nr_parts) {
8 + printk(KERN_NOTICE "Using physmap partition information\n");
9 + add_mtd_partitions(info->cmtd, physmap_data->parts,
10 + physmap_data->nr_parts);
14 err = parse_mtd_partitions(info->cmtd, part_probe_types,
17 @@ -177,13 +184,6 @@ static int physmap_flash_probe(struct pl
22 - if (physmap_data->nr_parts) {
23 - printk(KERN_NOTICE "Using physmap partition information\n");
24 - add_mtd_partitions(info->cmtd, physmap_data->parts,
25 - physmap_data->nr_parts);
30 add_mtd_device(info->cmtd);