[PATCH 14/43] mtd: physmap.c: use mtd_device_parse_register
Artem Bityutskiy
dedekind1 at gmail.com
Thu Jun 9 03:32:32 EDT 2011
On Wed, 2011-06-08 at 20:05 +0400, Dmitry Eremin-Solenikov wrote:
> - if (physmap_data->nr_parts) {
> - printk(KERN_NOTICE "Using physmap partition information\n");
> - mtd_device_register(info->cmtd, physmap_data->parts,
> - physmap_data->nr_parts);
> - return 0;
> - }
> -
> - mtd_device_register(info->cmtd, NULL, 0);
> -
> + mtd_device_parse_register(info->cmtd, part_probe_types, 0,
> + physmap_data->parts, physmap_data->nr_parts);
Same here.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list